Home
last modified time | relevance | path

Searched refs:awtImage (Results 1 – 5 of 5) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DImageOverlay.java127 public synchronized Image setImage(BufferedImage awtImage, boolean isAlphaChannelImage) { in setImage() argument
131 if (awtImage != oldAwtImage || awtImage == null) { in setImage()
139 if (awtImage == null) { in setImage()
142 mImage = SwtUtils.convertToSwt(mCanvas.getDisplay(), awtImage, in setImage()
146 assert awtImage instanceof SwtReadyBufferedImage; in setImage()
153 mImage = SwtUtils.convertToSwt(mCanvas.getDisplay(), awtImage, true, -1); in setImage()
156 mImage = ((SwtReadyBufferedImage)awtImage).getSwtImage(); in setImage()
188 BufferedImage awtImage = mAwtImage.get(); in getAwtImage() local
189 if (awtImage == null && mImage != null) { in getAwtImage()
190 awtImage = SwtUtils.convertToAwt(mImage); in getAwtImage()
[all …]
DSwtUtils.java130 public static Image convertToSwt(Device display, BufferedImage awtImage, in convertToSwt() argument
132 if (!isSupportedPaletteType(awtImage.getType())) { in convertToSwt()
133 awtImage = convertToCompatibleFormat(awtImage); in convertToSwt()
136 int width = awtImage.getWidth(); in convertToSwt()
137 int height = awtImage.getHeight(); in convertToSwt()
139 WritableRaster raster = awtImage.getRaster(); in convertToSwt()
142 new ImageData(width, height, 32, getAwtPaletteData(awtImage.getType())); in convertToSwt()
153 return convertToSwt(display, convertToCompatibleFormat(awtImage), in convertToSwt()
163 int alpha = awtImage.getRGB(x, y) >>> 24; in convertToSwt()
194 BufferedImage awtImage = in convertToAwt() local
[all …]
DPaletteControl.java878 BufferedImage awtImage = SwtUtils.convertToAwt(image); in createDragImage() local
879 if (awtImage != null) { in createDragImage()
880 awtImage = ImageUtils.createDropShadow(awtImage, 3 /* shadowSize */, in createDragImage()
882 mImage = SwtUtils.convertToSwt(display, awtImage, true, IMG_ALPHA); in createDragImage()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/
DXmlPropertyEditor.java238 BufferedImage awtImage = ImageIO.read(file); in paint() local
239 if (awtImage != null && awtImage.getWidth() > 0 in paint()
240 && awtImage.getHeight() > 0) { in paint()
241 awtImage = ImageUtils.cropBlank(awtImage, null); in paint()
242 if (awtImage != null) { in paint()
244 int imageWidth = awtImage.getWidth(); in paint()
245 int imageHeight = awtImage.getHeight(); in paint()
254 awtImage = ImageUtils.scale(awtImage, scale, in paint()
258 awtImage, true /*transferAlpha*/, -1); in paint()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DSwtUtilsTest.java78 BufferedImage awtImage = SwtUtils.convertToAwt(outImage); in testImageConvertNoAlpha() local
79 assertNotNull(awtImage); in testImageConvertNoAlpha()
83 assertEquals(BufferedImage.TYPE_INT_ARGB, awtImage.getType()); in testImageConvertNoAlpha()
92 int actual = awtImage.getRGB(x, y); in testImageConvertNoAlpha()
94 assertEquals(awtAlphaMask | inImage.getRGB(x, y), awtImage.getRGB(x, y)); in testImageConvertNoAlpha()