Home
last modified time | relevance | path

Searched refs:ImageUtils (Results 1 – 18 of 18) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DImageUtilsTest.java42 BufferedImage crop = ImageUtils.cropBlank(image, null); in testCropBlank()
53 BufferedImage crop = ImageUtils.cropBlank(image, new Rect(5, 5, 80, 80)); in testCropBlankPre()
64 BufferedImage crop = ImageUtils.cropBlank(image, null); in testCropNonblank()
79 BufferedImage crop = ImageUtils.cropBlank(image, null); in testCropSomething()
96 BufferedImage crop = ImageUtils.cropBlank(image, new Rect(0, 0, 100, 100)); in testCropSomethingPre()
113 BufferedImage crop = ImageUtils.cropBlank(image, new Rect(5, 5, 80, 80)); in testCropSomethingPre2()
128 BufferedImage crop = ImageUtils.cropColor(image, 0xFF00FF00, null); in testCropColor()
139 BufferedImage crop = ImageUtils.cropColor(image, 0xFFFF0000, null); in testCropNonColor()
154 BufferedImage crop = ImageUtils.cropColor(image, 0xFF00FF00, null); in testCropColorSomething()
168 BufferedImage crop = ImageUtils.cropColor(image, 0xFFFF0000, new Rect(40, 40, 0, 0)); in testNothingTodo()
[all …]
DSwtUtilsTest.java239 SwtUtils.drawRectangles(image, items, ImageUtils.getBoundingRectangle(items), in testCrop1()
278 SwtUtils.drawRectangles(image, items, ImageUtils.getBoundingRectangle(items), in testCrop2()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DPreviewIconFactory.java221 overrideBgColor = Integer.valueOf(ImageUtils.rgbToInt(bg, 0xFF)); in render()
298 bg = ImageUtils.intToRgb(p); in render()
299 if (ImageUtils.getBrightness(ImageUtils.rgbToInt(bg, 255)) < 128) { in render()
407 int bgRgb = ImageUtils.rgbToInt(background, 0xFF); in getColorsFromTheme()
408 int backgroundBrightness = ImageUtils.getBrightness(bgRgb); in getColorsFromTheme()
416 int fgRgb = ImageUtils.rgbToInt(foreground, 0xFF); in getColorsFromTheme()
417 int foregroundBrightness = ImageUtils.getBrightness(fgRgb); in getColorsFromTheme()
449 return ImageUtils.intToRgb(rgb); in renderDrawableResource()
550 BufferedImage im = ImageUtils.subImage(image, left, top, right, bottom); in savePreview()
624 int rgb = ImageUtils.getColor(colorString.trim()); in initColors()
[all …]
DImageOverlay.java19 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.SHADOW_SIZE;
245 scaledAwtImage = ImageUtils.createRectangularDropShadow(awtImage); in paint()
249 scaledAwtImage = ImageUtils.scale(awtImage, xScale, yScale, in paint()
251 ImageUtils.drawRectangleShadow(scaledAwtImage, 0, 0, in paint()
255 scaledAwtImage = ImageUtils.scale(awtImage, xScale, yScale); in paint()
DRenderPreview.java22 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.SHADOW_SIZE;
23 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.SMALL_SHADOW_SIZE;
682 image = ImageUtils.scale(image, scale, scale, in createThumbnail()
685 ImageUtils.drawRectangleShadow(image, 0, 0, in createThumbnail()
690 image = ImageUtils.scale(image, scale, scale, in createThumbnail()
693 ImageUtils.drawSmallRectangleShadow(image, 0, 0, in createThumbnail()
721 ImageUtils.drawRectangleShadow(image, 0, 0, in createErrorThumbnail()
725 ImageUtils.drawSmallRectangleShadow(image, 0, 0, in createErrorThumbnail()
DCanvasTransform.java18 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.SHADOW_SIZE;
DPaletteControl.java880 awtImage = ImageUtils.createDropShadow(awtImage, 3 /* shadowSize */, in createDragImage()
1042 cropped = ImageUtils.cropBlank(image, initialCrop); in renderPreview()
1061 cropped = ImageUtils.cropColor(image, edgeColor, initialCrop); in renderPreview()
1068 && !ImageUtils.containsDarkPixels(cropped); in renderPreview()
1069 cropped = ImageUtils.createDropShadow(cropped, in renderPreview()
1076 cropped = ImageUtils.scale(cropped, scale, scale); in renderPreview()
DImageUtils.java55 public class ImageUtils { class
469 ImageUtils.drawRectangleShadow(image, 0, 0, width, height); in createRectangularDropShadow()
682 InputStream stream = ImageUtils.class.getResourceAsStream("/icons/" + name); //$NON-NLS-1$ in readImage()
DSwtUtils.java18 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.SHADOW_SIZE;
DLayoutCanvas.java877 sceneWidth += 2 * ImageUtils.SHADOW_SIZE; in setFitScale()
878 sceneHeight += 2 * ImageUtils.SHADOW_SIZE; in setFitScale()
DGestureManager.java855 Rectangle boundingBox = ImageUtils.getBoundingRectangle(rectangles); in dragStart()
DRenderPreviewManager.java22 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.SHADOW_SIZE;
23 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.SMALL_SHADOW_SIZE;
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
DResourcePreviewHelper.java26 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils;
133 image = ImageUtils.createColoredImage(WIDTH, HEIGHT, color); in updatePreview()
147 if (ImageUtils.hasImageExtension(path) in updatePreview()
159 image = ImageUtils.scale(image, scale, scale); in updatePreview()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/
DResourceNameValidator.java25 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils;
113 && ImageUtils.hasImageExtension(newText)) { in isValid()
DResourceHelper.java65 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils;
545 int rgba = ImageUtils.getColor(value); in resolveColor()
547 return ImageUtils.intToRgb(rgba); in resolveColor()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
DTemplateMetadata.java50 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils;
338 int rgb = ImageUtils.getColor(colorString.trim()); in getRgb()
339 return ImageUtils.intToRgb(rgb); in getRgb()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/
DXmlPropertyEditor.java40 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils;
241 awtImage = ImageUtils.cropBlank(awtImage, null); in paint()
254 awtImage = ImageUtils.scale(awtImage, scale, in paint()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/assetstudio/
DConfigureAssetSetPage.java37 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils;
1048 sourceImage = ImageUtils.cropBlank(sourceImage, null, TYPE_INT_ARGB); in generateImages()
1067 sourceImage = ImageUtils.cropBlank(sourceImage, null, TYPE_INT_ARGB); in generateImages()
1102 sourceImage = ImageUtils.cropBlank(sourceImage, null, TYPE_INT_ARGB); in generateImages()
1240 BufferedImage coloredImage = ImageUtils.createColoredImage(60, 20, color); in updateColor()