The key is to use one of the overloads of DrawImage which takes an ImageAttributes object as a parameter.
One thing I don't understand is that the following call fails if
srcUnit is specified to be GraphicsUnit::Display.g->DrawImage(image, imgDest, srcRect,
GraphicsUnit::Pixel, imgAttr);

No comments:
Post a Comment