Home
last modified time | relevance | path

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

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/
DNinePatchedImage.java211 private static final boolean isValidTickColor(int pixel) { in isValidTickColor() argument
212 return (pixel == BLACK_TICK || pixel == RED_TICK); in isValidTickColor()
222 int pixel = getPixel(mBaseImageData, x, y); in ensurePixel() local
227 if (isValidTickColor(pixel)) { in ensurePixel()
228 pixels[index] = pixel; in ensurePixel()
383 int pixel = pixels[i]; in findPatches() local
385 if (redTickOnly && pixel != TRANSPARENT_TICK && pixel != RED_TICK) { in findPatches()
390 if (patch.color != pixel) { in findPatches()
397 patch = new Tick(pixel); in findPatches()
543 int pixel = mHorizontalPatchPixels[x]; in getRawImageData() local
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DSwtUtils.java204 int pixel = swtData.getPixel(x, y); in convertToAwt() local
205 awtImage.setRGB(x, y, 0xFF000000 | pixel); in convertToAwt()
216 int pixel = swtData.getPixel(x, y); in convertToAwt() local
218 int r = pixel & swtPalette.redMask; in convertToAwt()
219 int g = pixel & swtPalette.greenMask; in convertToAwt()
220 int b = pixel & swtPalette.blueMask; in convertToAwt()
225 pixel = 0xFF000000 | r | g | b; in convertToAwt()
226 awtImage.setRGB(x, y, pixel); in convertToAwt()
DImageUtils.java65 int pixel = image.getRGB(x, y); in containsDarkPixels() local
66 if ((pixel & 0xFF000000) != 0) { in containsDarkPixels()
67 int r = (pixel & 0xFF0000) >> 16; in containsDarkPixels()
68 int g = (pixel & 0x00FF00) >> 8; in containsDarkPixels()
69 int b = (pixel & 0x0000FF); in containsDarkPixels()
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/util/
DPsdFile.java114 final int pixel = pixels[i]; in writeImage() local
115 a[i] = (byte) ((pixel >> 24) & 0xFF); in writeImage()
116 r[i] = (byte) ((pixel >> 16) & 0xFF); in writeImage()
117 g[i] = (byte) ((pixel >> 8) & 0xFF); in writeImage()
118 b[i] = (byte) (pixel & 0xFF); in writeImage()
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/
DScreenViewer.java448 int pixel = image.getRGB(x, y); in showPixel() local
449 color = new Color(pixel); in showPixel()
450 hLabel.setText("#" + Integer.toHexString(pixel)); in showPixel()
451 rLabel.setText(String.valueOf((pixel >> 16) & 0xff)); in showPixel()
452 gLabel.setText(String.valueOf((pixel >> 8) & 0xff)); in showPixel()
453 bLabel.setText(String.valueOf((pixel ) & 0xff)); in showPixel()