Constructs a new RasterImage object using the specified parameters and optional managed memory.
public RasterImage(
Leadtools.RasterMemoryFlags flags,
int width,
int height,
int bitsPerPixel,
Leadtools.RasterByteOrder order,
Leadtools.RasterViewPerspective viewPerspective,
Leadtools.RasterColor[] palette
)
Public Function New( _
ByVal flags As Leadtools.RasterMemoryFlags, _
ByVal width As Integer, _
ByVal height As Integer, _
ByVal bitsPerPixel As Integer, _
ByVal order As Leadtools.RasterByteOrder, _
ByVal viewPerspective As Leadtools.RasterViewPerspective, _
ByVal palette() As Leadtools.RasterColor _
)
public RasterImage(
Leadtools.RasterMemoryFlags flags,
int width,
int height,
int bitsPerPixel,
Leadtools.RasterByteOrder order,
Leadtools.RasterViewPerspective viewPerspective,
Leadtools.RasterColor[] palette
)
- (nullable instancetype)initWithFlags:(LTRasterMemoryFlags)flags
width:(NSInteger)width
height:(NSInteger)height
bitsPerPixel:(NSInteger)bitsPerPixel
order:(LTRasterByteOrder)order
viewPerspective:(LTRasterViewPerspective)viewPerspective
palette:(nullable NSArray<LTRasterColor *> *)palette
error:(NSError **)error
function RasterImage(
flags ,
width ,
height ,
bitsPerPixel ,
order ,
viewPerspective ,
palette
)
public:
RasterImage(
Leadtools.RasterMemoryFlags flags,
int width,
int height,
int bitsPerPixel,
Leadtools.RasterByteOrder order,
Leadtools.RasterViewPerspective viewPerspective,
Leadtools.array<RasterColor>^ palette
)
flags
A combination of the RasterMemoryFlags enumeration members indicating the type of memory to allocate for the image data.
width
Width of the image in pixels.
height
Height of the image in pixels.
bitsPerPixel
The number of bits per pixel.
Valid values are 0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 16, 24, 32, 48, and 64.
Use 0 to create an 8-bit grayscale image. In that case, the method ignores the order and the palette parameters.
order
Color order for 16-bit, 24-bit, 32-bit, 48-bit and 64-bit images.
If the resultant image is less than 16 bits per pixel, this will have no effect since palletized images have no order.
viewPerspective
Specifies where the beginning of the image is stored.
Most file formats start in the lower left corner while some formats start in the upper left corner.
palette
The palette that the image will use. You can specify your own palette, or use null for LEAD's fixed palette. The palette member is used only when bitsPerPixel is less than or equal to 8.
Support for 12 and 16-bit grayscale images is only available in the Document/Medical Imaging editions.
There is some speed penalty (loss) for accessing RasterMemoryFlags.Tiled images. Therefore, it is not recommended for use with all images.
The RasterMemoryFlags.Tiled images are not used by default. LEADTOOLS will create them only if it failed to create RasterMemoryFlags.Conventional images and RasterMemoryFlags.NoTiled was not specified.
The following lists the distinct types of bitmaps:
For more information, refer to Accounting for View Perspective.
For more information, refer to Grayscale Images.
For an example, refer to RasterImage.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.