LEADTOOLS (Leadtools assembly)

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

Show in webframe







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.
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
)
+(id)createColoredWithWidth:(unsigned int)inWidth
                     height:(unsigned int)inHeight
               bitsPerPixel:(unsigned int)inBitsPerPixel
                 resolution:(unsigned int)resolution
            backgroundColor:(LTRasterColor*)backgroundColor
                      error:(NSError**)outError;
            
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

See Also

Reference

RasterImage Class
RasterImage Members

 

 


Products | Support | Contact Us | Copyright Notices

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