/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | ImageUtilsTest.java | 42 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 …]
|
D | SwtUtilsTest.java | 239 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/ |
D | PreviewIconFactory.java | 221 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 …]
|
D | ImageOverlay.java | 19 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()
|
D | RenderPreview.java | 22 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()
|
D | CanvasTransform.java | 18 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.SHADOW_SIZE;
|
D | PaletteControl.java | 880 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()
|
D | ImageUtils.java | 55 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()
|
D | SwtUtils.java | 18 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.SHADOW_SIZE;
|
D | LayoutCanvas.java | 877 sceneWidth += 2 * ImageUtils.SHADOW_SIZE; in setFitScale() 878 sceneHeight += 2 * ImageUtils.SHADOW_SIZE; in setFitScale()
|
D | GestureManager.java | 855 Rectangle boundingBox = ImageUtils.getBoundingRectangle(rectangles); in dragStart()
|
D | RenderPreviewManager.java | 22 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/ |
D | ResourcePreviewHelper.java | 26 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/ |
D | ResourceNameValidator.java | 25 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils; 113 && ImageUtils.hasImageExtension(newText)) { in isValid()
|
D | ResourceHelper.java | 65 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/ |
D | TemplateMetadata.java | 50 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/ |
D | XmlPropertyEditor.java | 40 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/ |
D | ConfigureAssetSetPage.java | 37 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()
|