You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Drawing (GdPicture Image) > DrawGdPictureImageTransparencyColor > DrawGdPictureImageTransparencyColor Method (Integer, Integer, Color, Integer, Integer, Integer, Integer, InterpolationMode)
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.DrawGdPictureImageTransparencyColor Method (Integer, Integer, Color, Integer, Integer, Integer, Integer, InterpolationMode)

Draws a GdPicture image into another GdPicture image setting a specific color of the image to drawn as transparent.

C#
public GdPictureStatus DrawGdPictureImageTransparencyColor(
    int SrcImage, 
    int DstImage, 
    Color TransparentColor, 
    int DstLeft, 
    int DstTop, 
    int DstWidth, 
    int DstHeight, 
    InterpolationMode InterpolationMode
);
Visual Basic
Public Function DrawGdPictureImageTransparencyColor(
    ByVal SrcImage As Integer, 
    ByVal DstImage As Integer, 
    ByVal TransparentColor As Color, 
    ByVal DstLeft As Integer, 
    ByVal DstTop As Integer, 
    ByVal DstWidth As Integer, 
    ByVal DstHeight As Integer, 
    ByVal InterpolationMode As InterpolationMode
) As GdPictureStatus
Parameters
Parameters 
Description 
SrcImage 
GdPicture Image Identifier. Specifies the image to be drawn.  
DstImage 
GdPicture Image Identifier. specifies the image to draw.  
TransparentColor 
Color Object. You can build a Color Object using the ARGB() function. The color to set as transparent.  
DstLeft 
Specifies the x-coordinate in pixel of the upper-left corner of the destination rectangle at which to draw the image.  
DstTop 
Specifies the y-coordinate in pixel of the upper-left corner of the destination rectangle at which to draw the image.  
DstWidth 
Specifies the width in pixel of the destination rectangle at which to draw the image.  
DstHeight 
Specifies the height in pixel of the destination rectangle at which to draw the image.  
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.