HomeSort by relevance Sort by last modified time
    Searched refs:awtImage (Results 1 - 4 of 4) sorted by null

  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
SwtUtils.java 115 * @param awtImage The AWT {@link BufferedImage}
122 public static Image convertToSwt(Display display, BufferedImage awtImage,
124 if (!isSupportedPaletteType(awtImage.getType())) {
125 awtImage = convertToCompatibleFormat(awtImage);
128 int width = awtImage.getWidth();
129 int height = awtImage.getHeight();
131 WritableRaster raster = awtImage.getRaster();
134 new ImageData(width, height, 32, getAwtPaletteData(awtImage.getType()));
145 return convertToSwt(display, convertToCompatibleFormat(awtImage),
    [all...]
ImageOverlay.java 106 * @param awtImage The AWT image to be rendered as an SWT image.
110 public synchronized Image setImage(BufferedImage awtImage, boolean isAlphaChannelImage) {
111 if (awtImage != mAwtImage || awtImage == null) {
118 if (awtImage == null) {
121 mImage = SwtUtils.convertToSwt(mCanvas.getDisplay(), awtImage,
125 assert awtImage instanceof SwtReadyBufferedImage;
128 mImage = SwtUtils.convertToSwt(mCanvas.getDisplay(), awtImage, true, -1);
130 mImage = ((SwtReadyBufferedImage)awtImage).getSwtImage();
PaletteControl.java     [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 705 milliseconds