GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / DrawGdPictureImageRectOnHwnd Method
GdPicture image identifier. Image to draw.
Window Handle destination.
Left pixel destination of the window.
Top pixel destination of the window.
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.





In This Topic
DrawGdPictureImageRectOnHwnd Method (GdPictureImaging)
In This Topic
Draws a portion of a GdPicture image into a window defined by a Window Handle.
Syntax
'Declaration
 
Public Function DrawGdPictureImageRectOnHwnd( _
   ByVal ImageID As Integer, _
   ByVal HANDLE As IntPtr, _
   ByVal DstLeft As Single, _
   ByVal DstTop As Single, _
   ByVal DstWidth As Single, _
   ByVal DstHeight As Single, _
   ByVal SrcLeft As Single, _
   ByVal SrcTop As Single, _
   ByVal SrcWidth As Single, _
   ByVal SrcHeight As Single, _
   ByVal InterpolationMode As InterpolationMode _
) As GdPictureStatus
public GdPictureStatus DrawGdPictureImageRectOnHwnd( 
   int ImageID,
   IntPtr HANDLE,
   float DstLeft,
   float DstTop,
   float DstWidth,
   float DstHeight,
   float SrcLeft,
   float SrcTop,
   float SrcWidth,
   float SrcHeight,
   InterpolationMode InterpolationMode
)
public function DrawGdPictureImageRectOnHwnd( 
    ImageID: Integer;
    HANDLE: IntPtr;
    DstLeft: Single;
    DstTop: Single;
    DstWidth: Single;
    DstHeight: Single;
    SrcLeft: Single;
    SrcTop: Single;
    SrcWidth: Single;
    SrcHeight: Single;
    InterpolationMode: InterpolationMode
): GdPictureStatus; 
public function DrawGdPictureImageRectOnHwnd( 
   ImageID : int,
   HANDLE : IntPtr,
   DstLeft : float,
   DstTop : float,
   DstWidth : float,
   DstHeight : float,
   SrcLeft : float,
   SrcTop : float,
   SrcWidth : float,
   SrcHeight : float,
   InterpolationMode : InterpolationMode
) : GdPictureStatus;
public: GdPictureStatus DrawGdPictureImageRectOnHwnd( 
   int ImageID,
   IntPtr HANDLE,
   float DstLeft,
   float DstTop,
   float DstWidth,
   float DstHeight,
   float SrcLeft,
   float SrcTop,
   float SrcWidth,
   float SrcHeight,
   InterpolationMode InterpolationMode
) 
public:
GdPictureStatus DrawGdPictureImageRectOnHwnd( 
   int ImageID,
   IntPtr HANDLE,
   float DstLeft,
   float DstTop,
   float DstWidth,
   float DstHeight,
   float SrcLeft,
   float SrcTop,
   float SrcWidth,
   float SrcHeight,
   InterpolationMode InterpolationMode
) 

Parameters

ImageID
GdPicture image identifier. Image to draw.
HANDLE
Window Handle destination.
DstLeft
Left pixel destination of the window.
DstTop
Top pixel destination of the window.
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