OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:awtImage
(Results
1 - 6
of
6
) sorted by null
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
ImageOverlay.java
123
* @param
awtImage
The AWT image to be rendered as an SWT image.
127
public synchronized Image setImage(BufferedImage
awtImage
, boolean isAlphaChannelImage) {
131
if (
awtImage
!= oldAwtImage ||
awtImage
== null) {
139
if (
awtImage
== null) {
142
mImage = SwtUtils.convertToSwt(mCanvas.getDisplay(),
awtImage
,
146
assert
awtImage
instanceof SwtReadyBufferedImage;
153
mImage = SwtUtils.convertToSwt(mCanvas.getDisplay(),
awtImage
, true, -1);
156
mImage = ((SwtReadyBufferedImage)
awtImage
).getSwtImage();
188
BufferedImage
awtImage
= mAwtImage.get()
[
all
...]
SwtUtils.java
123
* @param
awtImage
The AWT {@link BufferedImage}
130
public static Image convertToSwt(Device display, BufferedImage
awtImage
,
132
if (!isSupportedPaletteType(
awtImage
.getType())) {
133
awtImage
= convertToCompatibleFormat(
awtImage
);
136
int width =
awtImage
.getWidth();
137
int height =
awtImage
.getHeight();
139
WritableRaster raster =
awtImage
.getRaster();
142
new ImageData(width, height, 32, getAwtPaletteData(
awtImage
.getType()));
153
return convertToSwt(display, convertToCompatibleFormat(
awtImage
),
[
all
...]
PaletteControl.java
[
all
...]
/external/jmonkeyengine/engine/src/desktop/com/jme3/app/state/
ScreenshotAppState.java
33
private BufferedImage
awtImage
;
70
awtImage
= new BufferedImage(w, h, BufferedImage.TYPE_4BYTE_ABGR);
85
Screenshots.convertScreenShot(outBuf,
awtImage
);
88
ImageIO.write(
awtImage
, "png", new File(appName + shotIndex + ".png"));
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/
XmlPropertyEditor.java
238
BufferedImage
awtImage
= ImageIO.read(file);
239
if (
awtImage
!= null &&
awtImage
.getWidth() > 0
240
&&
awtImage
.getHeight() > 0) {
241
awtImage
= ImageUtils.cropBlank(
awtImage
, null);
242
if (
awtImage
!= null) {
244
int imageWidth =
awtImage
.getWidth();
245
int imageHeight =
awtImage
.getHeight();
254
awtImage
= ImageUtils.scale(awtImage, scale
[
all
...]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
SwtUtilsTest.java
78
BufferedImage
awtImage
= SwtUtils.convertToAwt(outImage);
79
assertNotNull(
awtImage
);
83
assertEquals(BufferedImage.TYPE_INT_ARGB,
awtImage
.getType());
92
int actual =
awtImage
.getRGB(x, y);
94
assertEquals(awtAlphaMask | inImage.getRGB(x, y),
awtImage
.getRGB(x, y));
Completed in 910 milliseconds