←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 a Android android.graphics.Bitmap object.

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

Requirements

Target Platforms

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

Leadtools.Converters Assembly