You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Drawing GdPicture Image on HDC, HWND & Graphics > DrawGdPictureImageRectOnHDC Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.DrawGdPictureImageRectOnHDC Method

Draws a portion of a GdPicture image into a HDC (Handle to Device Context).

C#
public GdPictureStatus DrawGdPictureImageRectOnHDC(
    int ImageID, 
    IntPtr hdc, 
    int DstLeft, 
    int DstTop, 
    int DstWidth, 
    int DstHeight, 
    int SrcLeft, 
    int SrcTop, 
    int SrcWidth, 
    int SrcHeight, 
    InterpolationMode InterpolationMode
);
Visual Basic
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
Parameters
Parameters 
Description 
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.  
Returns

A member of the GdPictureStatus enumeration.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.