• Advertisement
Sign in to follow this  

XNA and vb.net problem

This topic is 891 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i have build an application for 2d chart in vb.net, using XNA. Now i'd like to add a selection effect like this http://www.codeproject.com/Articles/27061/Image-Cropping-with-Image-Resizing-Using-VB-NET ; my problem is that: when i add the code for the selection in my xna application, visual studio said:

  Error      Overload resolution failed because no accessible 'New' can be called with these arguments:
    'Public Sub New(brush As System.Drawing.Brush, width As Single)': Value of type 'Microsoft.Xna.Framework.Color' cannot be converted to 'System.Drawing.Brush'.
    'Public Sub New(color As System.Drawing.Color, width As Single)': Value of type 'Microsoft.Xna.Framework.Color' cannot be converted to 'System.Drawing.Color'.    C:\Users\zzzzzz\mydoc\apptest\transpPrivewForm.vb    70    27  

 

Error    2    'FromArgb' is not a member of 'Microsoft.Xna.Framework.Color'.    C:\Users\zzzzzz\mydoc\apptest\transpPrivewForm.vb
    61    36 

 

Anyone know how can i do the same thing using only xna or how to solve this errors?



 

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement