Jump to content
  • Advertisement
Sign in to follow this  
Hannibal smith

XNA and vb.net problem

This topic is 1067 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!