Error processing SSI file
LEADTOOLS (Leadtools assembly)

Show in webframe

CreateGrayscale Method








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

The number of bits per pixel.

Valid values are 8, 12, 16.

Value to be used as the x and y resolution for the image.
Creates a new grayscale RasterImage using the specified parameters.
Syntax
public static RasterImage CreateGrayscale( 
   int width,
   int height,
   int bitsPerPixel,
   int resolution
)
'Declaration
 
Public Shared Function CreateGrayscale( _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal bitsPerPixel As Integer, _
   ByVal resolution As Integer _
) As RasterImage
'Usage
 
Dim width As Integer
Dim height As Integer
Dim bitsPerPixel As Integer
Dim resolution As Integer
Dim value As RasterImage
 
value = RasterImage.CreateGrayscale(width, height, bitsPerPixel, resolution)
public static RasterImage CreateGrayscale( 
   int width,
   int height,
   int bitsPerPixel,
   int resolution
)
+ (nullable instancetype)grayscaleImageWithWidth:(NSInteger)width
                                          height:(NSInteger)height 
                                    bitsPerPixel:(NSInteger)bitsPerPixel 
                                      resolution:(NSInteger)resolution 
                                           error:(NSError **)error
            
public static RasterImage createGrayscale(
  int width, 
  int height, 
  int bitsPerPixel, 
  int resolution
)
            
 function Leadtools.RasterImage.CreateGrayscale( 
   width ,
   height ,
   bitsPerPixel ,
   resolution 
)
public:
static RasterImage^ CreateGrayscale( 
   int width,
   int height,
   int bitsPerPixel,
   int resolution
) 

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 8, 12, 16.

resolution
Value to be used as the x and y resolution for the image.

Return Value

The newly created grayscale RasterImage object.
Remarks
For more information about creating and working with grayscale images, refer to Grayscale Images.
Requirements

Target Platforms

See Also

Reference

RasterImage Class
RasterImage Members

Error processing SSI file