CreateGrayscale Method (original) (raw)
Summary
Creates a new grayscale RasterImage using the specified parameters.
Syntax
C#
Objective-C
C++/CLI
Java
Python
+ (nullable instancetype)grayscaleImageWithWidth:(NSInteger)_width_
height:(NSInteger)_height_
bitsPerPixel:(NSInteger)_bitsPerPixel_
resolution:(NSInteger)_resolution_
error:(NSError **)error
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.
Leadtools Assembly