Skip to content

Latest commit

 

History

History
100 lines (74 loc) · 2.57 KB

nf-gdiplusgraphics-graphics-drawimage(image_constpointf_).md

File metadata and controls

100 lines (74 loc) · 2.57 KB
UID title description tech.root helpviewer_keywords ms.assetid ms.date ms.keywords targetos req.assembly req.construct-type req.ddi-compliance req.dll req.header req.idl req.include-header req.irql req.kmdf-ver req.lib req.max-support req.namespace req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.type-library req.umdf-ver req.unicode-ansi f1_keywords dev_langs topic_type api_type api_location api_name
NF:gdiplusgraphics.Graphics.DrawImage(Image,constPointF&)
Graphics::DrawImage
The Graphics::DrawImage method draws an image. (overload 3/14)
gdiplus
Graphics::DrawImage
933bdaec-75a8-4437-b42a-0799c2925d66
05/13/2019
Graphics::DrawImage
Windows
function
gdiplusgraphics.h
Graphics::DrawImage
gdiplusgraphics/Graphics::DrawImage
c++
apiref
COM
gdiplusgraphics.h
Graphics::DrawImage

DrawImage(Image*,PointF&)

-description

The Graphics::DrawImage method draws an image.

-parameters

-param image

Pointer to an Image object that specifies the source image.

-param point

Reference to a PointF object that specifies the coordinates of the upper-left corner of the destination position at which to draw the image.

-returns

If the method succeeds, it returns Ok, which is an element of the Status enumeration.

If the method fails, it returns one of the other elements of the Status enumeration.

-remarks

Examples

The following example draws an image. The image is drawn with the upper-left corner at the coordinate specified by the point parameter.

VOID Example_DrawImage8(HDC hdc)

{

   Graphics graphics(hdc);

   // Create an Image object.
   Image image(L"climber.jpg");

   // Draw the image.
   graphics.DrawImage(&image, PointF(0.0f, 0.0f));
}

-see-also

Drawing, Positioning, and Cloning Images

Graphics

Image

Loading and Displaying Bitmaps

PointF