コード例 #1
0
 /// <summary>
 /// Draws the specified portion of the specified Image object at the specified location and with the specified size.
 /// </summary>
 /// <param name="image">Image object to draw.</param>
 /// <param name="destRect">Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.</param>
 /// <param name="srcX">x-coordinate of the upper-left corner of the portion of the source image to draw.</param>
 /// <param name="srcY">y-coordinate of the upper-left corner of the portion of the source image to draw.</param>
 /// <param name="srcWidth">Width of the portion of the source image to draw.</param>
 /// <param name="srcHeight">Height of the portion of the source image to draw.</param>
 /// <param name="srcUnit">Member of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.</param>
 /// <param name="imageAttrs">ImageAttributes object that specifies recoloring and gamma information for the image object.</param>
 internal void DrawImage(
     System.Drawing.Image image,
     Rectangle destRect,
     float srcX,
     float srcY,
     float srcWidth,
     float srcHeight,
     GraphicsUnit srcUnit,
     ImageAttributes imageAttrs
     )
 {
     RenderingObject.DrawImage(image, destRect, srcX, srcY, srcWidth, srcHeight, srcUnit, imageAttrs);
 }
コード例 #2
0
 public void DrawImage(Image image, RectangleF rect)
 {
     RenderingObject.DrawImage(image, rect);
 }
コード例 #3
0
 public void DrawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr)
 {
     RenderingObject.DrawImage(image, destRect, srcX, srcY, srcWidth, srcHeight, srcUnit, imageAttr);
 }