Imageutil Class; Imageutil Fields; Imageutil Methods - Motorola C370 Series Technical Manual

J2me developer guide
Hide thumbs Also See for C370 Series:
Table of Contents

Advertisement

ImageUtil Class

ImageUtil
Specifically, it provides methods for setting and getting RGB values, and also provides the
ability to create a scaled instance of an existing

ImageUtil Fields

The
ImageUtil
public static final int SCALE_AREA - Area scaling method.
public static final int SCALE_REPLICATE - Replicate scaling method.
public static final int SCALE_SMOOTH - Smooth scaling method.

ImageUtil Methods

The
ImageUtil
public static void getPixels(Image src, int x, int
y, int width, int height, int[] rgbData) throws
ArrayIndexOutOfBoundsException – Gets RGB pixel data from the
specified region of the source image. The data is stored in the provided int array in
row-major order using the standard 24-bit color format (0xRRGGBB). Note that the
color information stored in the image may be subject to the capabilities of the device's
display. The
to pixel amount that the user is requiring to the method. The parameters are the
following:
location of left edge of the region;
region;
- the height of the region; and
stored.
public static void getPixels(Image src,
int[] rgbData) throws ArrayIndexOutOfBoundsException –
Gets RGB pixel data from the entirety of the source image. The data is stored in the
provided int array in row-major order using the standard 24-bit color format
(0xRRGGBB). Note that the color information stored in the image may be subject to
the capabilities of the device's display. The
calling this method, according to pixel amount that the user is requiring to the
method. The parameters are the following:
pixel data from; and
public static void setPixels(javax.microedition.lcdui.Image dest, int x, int y, int width,
int height, int[] rgbData) throws ArrayIndexOutOfBoundsException,
IllegalArgumentException – Sets RGB pixel data in specified region of the destination
image. The data must be stored in the int array in row-major order using the standard
provides static methods useful to the manipulation of
class defines the following fields:
class defines the following methods:
must be instantiated previously calling this method, according
rgbData
- the source Image to retrieve the pixel data from;
src
- the width of the region;
width
rgbData
- the array in which the pixel data is to be stored.
rgbData
.
Image
- the vertical location of the top edge of the
y
- the height of the region;
height
- the array in which the pixel data is to be
must be instantiated previously
rgbData
- the source Image to retrieve the
src
objects.
Image
- the horizontal
x
height

Advertisement

Table of Contents
loading

This manual is also suitable for:

C450 seriesC550 series

Table of Contents