|
-
March 5th, 2009, 02:00 PM
#1
DrawImage help
Hi,
I'm trying to call a DrawImage function using two Rectangles and imageAttributes. I'm able to successfully draw my image using:
gxBuffer.DrawImage(Anim, destRect, sourceRect, GraphicsUnit.Pixel);
but when I try to add my image Attributes options it doesn't like the statement anymore, says invalid arguments:
gxBuffer.DrawImage(Anim, destRect, sourceRect, GraphicsUnit.Pixel, imgAttribs);
I looked on MSDN this function and it seems it needs specific parameters, I couldn't find one which allows two Rects and imgAttributes, this seems very limiting. Is there any way around this?
Thanks.
-
March 6th, 2009, 12:39 PM
#2
Re: DrawImage help
there is no such overload that you have used.
see here for list of overload
http://msdn.microsoft.com/en-us/libr...ge(VS.71).aspx
notice that some overloads are for .Net Compact Framework.
i think the nearest thing to what you want is this method:
public void DrawImage(Image, Point[], Rectangle, GraphicsUnit, ImageAttributes);
you can simulate a rectangle with an array of four points.
Last edited by toraj58; March 6th, 2009 at 12:42 PM.
Please rate my post if it was helpful for you.  Java, C#, C++, PHP, ASP.NET
SQL Server, MySQL
DirectX
MATH Touraj Ebrahimi
[toraj_e] [at] [yahoo] [dot] [com]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|