Rad76
March 5th, 2009, 01:00 PM
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.
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.