Package | Description |
---|---|
org.eclipse.swt.graphics | |
org.eclipse.swt.internal | |
org.eclipse.swt.internal.image | |
org.eclipse.swt.program |
Modifier and Type | Field and Description |
---|---|
ImageData[] |
ImageLoader.data
the array of ImageData objects in this ImageLoader.
|
ImageData |
ImageLoaderEvent.imageData
if the
endOfImage flag is false, then this is a
partially complete copy of the current ImageData ,
otherwise this is a completely loaded ImageData |
Modifier and Type | Method and Description |
---|---|
ImageData |
Image.getImageData()
Returns an
ImageData based on the receiver. |
ImageData |
ImageDataProvider.getImageData(int zoom)
Returns the image data for the given zoom level.
|
ImageData |
Image.getImageDataAtCurrentZoom()
Returns an
ImageData based on the receiver. |
ImageData |
ImageData.getTransparencyMask()
Returns an
ImageData which specifies the
transparency mask information for the receiver. |
static ImageData |
ImageData.internal_new(int width,
int height,
int depth,
PaletteData palette,
int scanlinePad,
byte[] data,
int maskPad,
byte[] maskData,
byte[] alphaData,
int alpha,
int transparentPixel,
int type,
int x,
int y,
int disposalMethod,
int delayTime)
Invokes internal SWT functionality to create a new instance of
this class.
|
ImageData[] |
ImageLoader.load(InputStream stream)
Loads an array of
ImageData objects from the
specified input stream. |
ImageData[] |
ImageLoader.load(String filename)
Loads an array of
ImageData objects from the
file with the specified name. |
ImageData |
ImageData.scaledTo(int width,
int height)
Returns a copy of the receiver which has been stretched or
shrunk to the specified size.
|
Constructor and Description |
---|
Cursor(Device device,
ImageData source,
ImageData mask,
int hotspotX,
int hotspotY)
Constructs a new cursor given a device, image and mask
data describing the desired cursor appearance, and the x
and y coordinates of the hotspot (that is, the point
within the area covered by the cursor which is considered
to be where the on-screen pointer is "pointing").
|
Cursor(Device device,
ImageData source,
int hotspotX,
int hotspotY)
Constructs a new cursor given a device, image data describing
the desired cursor appearance, and the x and y coordinates of
the hotspot (that is, the point within the area
covered by the cursor which is considered to be where the
on-screen pointer is "pointing").
|
Image(Device device,
ImageData data)
Constructs an instance of this class from the given
ImageData . |
Image(Device device,
ImageData source,
ImageData mask)
Constructs an instance of this class, whose type is
SWT.ICON , from the two given ImageData
objects. |
ImageLoaderEvent(ImageLoader source,
ImageData imageData,
int incrementCount,
boolean endOfImage)
Constructs a new instance of this class given the event source and
the values to store in its fields.
|
Modifier and Type | Method and Description |
---|---|
static ImageData |
DPIUtil.autoScaleDown(Device device,
ImageData imageData)
Auto-scale down ImageData
|
static ImageData |
DPIUtil.autoScaleImageData(Device device,
ImageData imageData,
int targetZoom,
int currentZoom)
Auto-scale image with ImageData
|
static ImageData |
DPIUtil.autoScaleUp(Device device,
ImageData imageData)
Auto-scale up ImageData
|
ImageData |
DPIUtil.AutoScaleImageDataProvider.getImageData(int zoom) |
static ImageData |
DPIUtil.validateAndGetImageDataAtZoom(ImageDataProvider provider,
int zoom,
boolean[] found)
Gets Image data at specified zoom level, if image is missing then
fall-back to 100% image.
|
Modifier and Type | Method and Description |
---|---|
static ImageData |
DPIUtil.autoScaleDown(Device device,
ImageData imageData)
Auto-scale down ImageData
|
static ImageData |
DPIUtil.autoScaleImageData(Device device,
ImageData imageData,
int targetZoom,
int currentZoom)
Auto-scale image with ImageData
|
static ImageData |
DPIUtil.autoScaleUp(Device device,
ImageData imageData)
Auto-scale up ImageData
|
Constructor and Description |
---|
AutoScaleImageDataProvider(Device device,
ImageData data,
int zoom) |
Modifier and Type | Method and Description |
---|---|
static ImageData[] |
FileFormat.load(InputStream is,
ImageLoader loader)
Read the specified input stream using the specified loader, and
return the device independent image array represented by the stream.
|
ImageData[] |
FileFormat.loadFromStream(org.eclipse.swt.internal.image.LEDataInputStream stream)
Read the specified input stream, and return the
device independent image array represented by the stream.
|
Modifier and Type | Method and Description |
---|---|
ImageData |
Program.getImageData()
Returns the receiver's image data.
|
Copyright © 2017. All Rights Reserved.