.NET Framework Class Library
Graphics..::.DrawImage Method

Draws the specified Image at the specified location and with the original size.

Overload List

  NameDescription
Public methodDrawImage(Image, Rectangle, Int32, Int32, Int32, Int32, GraphicsUnit, ImageAttributes, Graphics..::.DrawImageAbort, IntPtr)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, Rectangle, Single, Single, Single, Single, GraphicsUnit, ImageAttributes, Graphics..::.DrawImageAbort, IntPtr)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, Point)Draws the specified Image, using its original physical size, at the specified location.
Public methodDrawImage(Image, array<Point>[]()[])Draws the specified Image at the specified location and with the specified shape and size.
Public methodDrawImage(Image, PointF)Draws the specified Image, using its original physical size, at the specified location.
Public methodDrawImage(Image, array<PointF>[]()[])Draws the specified Image at the specified location and with the specified shape and size.
Public methodDrawImage(Image, Rectangle)Draws the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, RectangleF)Draws the specified Image at the specified location and with the specified size.
Public methodSupported by the .NET Compact FrameworkDrawImage(Image, Int32, Int32)Draws the specified image, using its original physical size, at the location specified by a coordinate pair.
Public methodDrawImage(Image, Single, Single)Draws the specified Image, using its original physical size, at the specified location.
Public methodDrawImage(Image, array<Point>[]()[], Rectangle, GraphicsUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, array<PointF>[]()[], RectangleF, GraphicsUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodSupported by the .NET Compact FrameworkDrawImage(Image, Rectangle, Rectangle, GraphicsUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, RectangleF, RectangleF, GraphicsUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, array<Point>[]()[], Rectangle, GraphicsUnit, ImageAttributes)Draws the specified portion of the specified Image at the specified location.
Public methodDrawImage(Image, array<PointF>[]()[], RectangleF, GraphicsUnit, ImageAttributes)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodSupported by the .NET Compact FrameworkDrawImage(Image, Int32, Int32, Rectangle, GraphicsUnit)Draws a portion of an image at a specified location.
Public methodDrawImage(Image, Int32, Int32, Int32, Int32)Draws the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, Single, Single, RectangleF, GraphicsUnit)Draws a portion of an image at a specified location.
Public methodDrawImage(Image, Single, Single, Single, Single)Draws the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, array<Point>[]()[], Rectangle, GraphicsUnit, ImageAttributes, Graphics..::.DrawImageAbort)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, array<PointF>[]()[], RectangleF, GraphicsUnit, ImageAttributes, Graphics..::.DrawImageAbort)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, array<Point>[]()[], Rectangle, GraphicsUnit, ImageAttributes, Graphics..::.DrawImageAbort, Int32)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, array<PointF>[]()[], RectangleF, GraphicsUnit, ImageAttributes, Graphics..::.DrawImageAbort, Int32)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, Rectangle, Int32, Int32, Int32, Int32, GraphicsUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, Rectangle, Single, Single, Single, Single, GraphicsUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodSupported by the .NET Compact FrameworkDrawImage(Image, Rectangle, Int32, Int32, Int32, Int32, GraphicsUnit, ImageAttributes)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, Rectangle, Single, Single, Single, Single, GraphicsUnit, ImageAttributes)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, Rectangle, Int32, Int32, Int32, Int32, GraphicsUnit, ImageAttributes, Graphics..::.DrawImageAbort)Draws the specified portion of the specified Image at the specified location and with the specified size.
Public methodDrawImage(Image, Rectangle, Single, Single, Single, Single, GraphicsUnit, ImageAttributes, Graphics..::.DrawImageAbort)Draws the specified portion of the specified Image at the specified location and with the specified size.
Top
See Also

Reference

Tags :


Community Content

scor7910
native C++ compiler could not find a GraphicsUnit enumerator.

When using GraphicsUnit enumerator value on native C++ , we should use Unit enumerator.
It's declared at GdiplusEnums.h as follows.

enum Unit
{
UnitWorld, // 0 -- World coordinate (non-physical unit)
UnitDisplay, // 1 -- Variable -- for PageTransform only
UnitPixel, // 2 -- Each unit is one device pixel.
UnitPoint, // 3 -- Each unit is a printer's point, or 1/72 inch.
UnitInch, // 4 -- Each unit is 1 inch.
UnitDocument, // 5 -- Each unit is 1/300 inch.
UnitMillimeter // 6 -- Each unit is 1 millimeter.
};

Tags :

Page view tracker