GdPicture.NET Reference Guide
DrawGdPictureImageRectOnHDC Method (GdPictureImaging)





GdPicture14 Namespace > GdPictureImaging Class : DrawGdPictureImageRectOnHDC Method
GdPicture Image Identifier. Image to draw.
Device Context destination.
Left pixel destination of the HDC.
Top pixel destination of the HDC.
Width, in pixel, of the drawn image.
Height, in pixel, of the drawn image.
Left pixel source of the image to draw.
Top pixel source of the image to draw.
Width portion, in pixel, of the image to draw.
Height portion, in pixel, of the image to draw.
A member of the Drawing2D.InterPolationMode enumeration.
Draws a portion of a GdPicture image into a HDC (Handle to Device Context).
Syntax
'Declaration
 
Public Function DrawGdPictureImageRectOnHDC( _
   ByVal ImageID As Integer, _
   ByVal hdc As IntPtr, _
   ByVal DstLeft As Integer, _
   ByVal DstTop As Integer, _
   ByVal DstWidth As Integer, _
   ByVal DstHeight As Integer, _
   ByVal SrcLeft As Integer, _
   ByVal SrcTop As Integer, _
   ByVal SrcWidth As Integer, _
   ByVal SrcHeight As Integer, _
   ByVal InterpolationMode As InterpolationMode _
) As GdPictureStatus
public function DrawGdPictureImageRectOnHDC( 
   ImageID : int,
   hdc : IntPtr,
   DstLeft : int,
   DstTop : int,
   DstWidth : int,
   DstHeight : int,
   SrcLeft : int,
   SrcTop : int,
   SrcWidth : int,
   SrcHeight : int,
   InterpolationMode : InterpolationMode
) : GdPictureStatus;

Parameters

ImageID
GdPicture Image Identifier. Image to draw.
hdc
Device Context destination.
DstLeft
Left pixel destination of the HDC.
DstTop
Top pixel destination of the HDC.
DstWidth
Width, in pixel, of the drawn image.
DstHeight
Height, in pixel, of the drawn image.
SrcLeft
Left pixel source of the image to draw.
SrcTop
Top pixel source of the image to draw.
SrcWidth
Width portion, in pixel, of the image to draw.
SrcHeight
Height portion, in pixel, of the image to draw.
InterpolationMode
A member of the Drawing2D.InterPolationMode enumeration.

Return Value

A member of the GdPictureStatus enumeration.
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members