←Select platform

ConvertToBitmap Method

Summary
Converts a LEADTOOLS RasterImage into an Android android.graphics.Bitmap object.
Syntax
Java
public static Bitmap convertToBitmap(RasterImage image, int convertToImageOptions) 

Parameters

image
The RasterImage object containing the image data to convert.

convertToImageOptions
The options value to control the conversion operation.

Return Value

A android.graphics.Bitmap object representing the converted image.

Remarks

Android

Use the convertToBitmap method to convert a LEADTOOLS RasterImage into an Android android.graphics.Bitmap object.

You can avoid making a copy of the actual image data when converting to an android.graphics.Bitmap by using the ConvertToImageOptions.LINK_IMAGE value.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Converters Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.