MobileForms Toolkit Documentation

GraphicsEx.DrawImageEx Method (Graphics, Image, Rectangle, Rectangle, Int32)

Draws the specified portion of the specified Image at the specified location and with the specified size.

public static void DrawImageEx(
Graphics gr,
Image image,
Rectangle destRect,
Rectangle srcRect,
int opacity
);

Parameters

gr
Graphics to use.
image
Image to draw.
destRect
Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcRect
Rectangle structure that specifies the portion of the image object to draw.
opacity
Specifies the opacity of the image. Valid values are 0 through 255.

See Also

GraphicsEx Class | Resco.Drawing Namespace | GraphicsEx.DrawImageEx Overload List