LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

Create(Int32,Int32,Int32,Int32,RasterColor) Method






Width of the image in pixels.
Height of the image in pixels.

The number of bits per pixel.

Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 16, 24, 32, 48, and 64.

Value to be used as the x and y resolution for the image.
RasterColor which will be used to fill the new image.
Creates a new RasterImage using the specified parameters. .NET support Silverlight support WinRT support
Syntax
public static RasterImage Create( 
   int width,
   int height,
   int bitsPerPixel,
   int resolution,
   RasterColor backgroundColor
)
'Declaration
 
Public Shared Function Create( _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal bitsPerPixel As Integer, _
   ByVal resolution As Integer, _
   ByVal backgroundColor As RasterColor _
) As RasterImage
'Usage
 
Dim width As Integer
Dim height As Integer
Dim bitsPerPixel As Integer
Dim resolution As Integer
Dim backgroundColor As RasterColor
Dim value As RasterImage
 
value = RasterImage.Create(width, height, bitsPerPixel, resolution, backgroundColor)
public static RasterImage Create( 
   int width,
   int height,
   int bitsPerPixel,
   int resolution,
   RasterColor backgroundColor
)
 function Leadtools.RasterImage.Create(Int32,Int32,Int32,Int32,RasterColor)( 
   width ,
   height ,
   bitsPerPixel ,
   resolution ,
   backgroundColor 
)
public:
static RasterImage^ Create( 
   int width,
   int height,
   int bitsPerPixel,
   int resolution,
   RasterColor backgroundColor
) 

Parameters

width
Width of the image in pixels.
height
Height of the image in pixels.
bitsPerPixel

The number of bits per pixel.

Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 16, 24, 32, 48, and 64.

resolution
Value to be used as the x and y resolution for the image.
backgroundColor
RasterColor which will be used to fill the new image.

Return Value

The newly created RasterImage object.
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

Reference

RasterImage Class
RasterImage Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.