Nevron .NET Vision
Nevron.Diagram.Extensions Namespace / NImageExporter Class / PixelFormat Property
Example


In This Topic
    PixelFormat Property (NImageExporter)
    In This Topic
    Controls the pixel format of the image
    Syntax
    'Declaration
     
    
    Public Property PixelFormat As System.Drawing.Imaging.PixelFormat
    'Usage
     
    
    Dim instance As NImageExporter
    Dim value As System.Drawing.Imaging.PixelFormat
     
    instance.PixelFormat = value
     
    value = instance.PixelFormat
    public System.Drawing.Imaging.PixelFormat PixelFormat {get; set;}
    Remarks
    The pixel format determines the format in which the image is generated. By default set to Format24bppRgb. If you want to generate an image with an alpha channel you need to set this property to Format32bppArgb.
    Example
    Configure the image exporter to generate a transparent image (if of course some of the fill effects have been set as transparent).
    imageExporter.PixelFormat = PixelFormat.Format32bppArgb;
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also