Searched defs:img (Results 26 - 50 of 88) sorted by relevance

1234

/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/
H A DEffectUtils.java47 * @param img The image to clear
49 static void clearImage(BufferedImage img) { argument
50 Graphics2D g2 = img.createGraphics();
52 g2.fillRect(0, 0, img.getWidth(), img.getHeight());
241 * @param img the source image
250 static byte[] getPixels(BufferedImage img, argument
262 int imageType = img.getType();
264 Raster raster = img.getRaster();
276 * @param img th
284 setPixels(BufferedImage img, int x, int y, int w, int h, byte[] pixels) argument
318 getPixels(BufferedImage img, int x, int y, int w, int h, int[] pixels) argument
357 setPixels(BufferedImage img, int x, int y, int w, int h, int[] pixels) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/awt/image/
H A DSunWritableRaster.java104 public static void markDirty(Image img) { argument
105 SurfaceData.getPrimarySurfaceData(img).markDirty();
H A DSurfaceManager.java55 public abstract SurfaceManager getSurfaceManager(Image img); argument
56 public abstract void setSurfaceManager(Image img, SurfaceManager mgr); argument
71 public static SurfaceManager getManager(Image img) { argument
72 SurfaceManager sMgr = imgaccessor.getSurfaceManager(img);
78 BufferedImage bi = (BufferedImage) img;
88 public static void setManager(Image img, SurfaceManager mgr) { argument
89 imgaccessor.setSurfaceManager(img, mgr);
197 // Note that when img.getAccelerationPriority() gets set to 0
298 public static int getImageScale(final Image img) { argument
299 if (!(img instanceo
[all...]
/openjdk7/jdk/src/macosx/classes/sun/lwawt/macosx/
H A DCMenuItem.java108 public void setImage(java.awt.Image img) { argument
109 CImage cimg = CImage.getCreator().createFromImage(img);
/openjdk7/jdk/test/java/awt/TrayIcon/DragEventSource/
H A DDragEventSource.java51 static Image img = null; field in class:DragEventSource
/openjdk7/jdk/src/share/native/sun/awt/medialib/
H A Dmlib_ImageCreate.c55 * void mlib_ImageDelete(mlib_image *img)
57 * mlib_image *mlib_ImageCreateSubimage(mlib_image *img,
63 * void *mlib_ImageCreateRowTable(mlib_image *img)
65 * void mlib_ImageDeleteRowTable(mlib_image *img)
67 * mlib_status mlib_ImageSetPaddings(mlib_image *img,
73 * mlib_status mlib_ImageSetFormat(mlib_image *img,
76 * img pointer to image data structure
355 void mlib_ImageDelete(mlib_image *img) argument
357 if (img == NULL) return;
358 if ((img
367 mlib_ImageCreateSubimage(mlib_image *img, mlib_s32 x, mlib_s32 y, mlib_s32 w, mlib_s32 h) argument
511 mlib_ImageCreateRowTable(mlib_image *img) argument
539 mlib_ImageDeleteRowTable(mlib_image *img) argument
553 mlib_ImageSetPaddings(mlib_image *img, mlib_u8 left, mlib_u8 top, mlib_u8 right, mlib_u8 bottom) argument
573 mlib_ImageSetFormat(mlib_image *img, mlib_format format) argument
[all...]
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/
H A DDestinations.java227 Image img; field in class:Destinations.BufImg
273 if (img == null) {
274 img = new BufferedImage(env.getWidth(), env.getHeight(), type);
276 env.setTestImage(img);
281 private Image img; field in class:Destinations.CustomImg
295 if (img == null) {
304 img = new BufferedImage(cm, raster, false, null);
306 env.setTestImage(img);
H A DTestEnvironment.java158 public void setTestImage(Image img) { argument
159 this.testImage = img;
162 public void setSrcImage(Image img) { argument
163 this.srcImage = img;
/openjdk7/jdk/src/share/classes/sun/java2d/
H A DSunGraphicsEnvironment.java176 public Graphics2D createGraphics(BufferedImage img) { argument
177 if (img == null) {
180 SurfaceData sd = SurfaceData.getPrimarySurfaceData(img);
/openjdk7/jdk/src/share/classes/sun/java2d/pipe/
H A DDrawImagePipe.java57 public boolean copyImage(SunGraphics2D sg, Image img, argument
62 public boolean copyImage(SunGraphics2D sg, Image img, argument
67 public boolean scaleImage(SunGraphics2D sg, Image img, int x, int y, argument
72 public boolean scaleImage(SunGraphics2D sg, Image img, argument
78 public boolean transformImage(SunGraphics2D sg, Image img, argument
82 public void transformImage(SunGraphics2D sg, BufferedImage img, argument
H A DDrawImage.java60 public boolean copyImage(SunGraphics2D sg, Image img, argument
64 int imgw = img.getWidth(null);
65 int imgh = img.getHeight(null);
67 return renderImageCopy(sg, img, bgColor,
76 transformImage(sg, img, atfm, sg.interpolationType,
81 public boolean copyImage(SunGraphics2D sg, Image img, argument
86 return renderImageCopy(sg, img, bgColor,
90 scaleImage(sg, img, dx, dy, (dx + w), (dy + h),
95 public boolean scaleImage(SunGraphics2D sg, Image img, int x, int y, argument
99 int imgw = img
137 transformImage(SunGraphics2D sg, Image img, int x, int y, AffineTransform extraAT, int interpType) argument
229 transformImage(SunGraphics2D sg, Image img, AffineTransform tx, int interpType, int sx1, int sy1, int sx2, int sy2, Color bgColor) argument
274 tryCopyOrScale(SunGraphics2D sg, Image img, int sx1, int sy1, int sx2, int sy2, Color bgColor, int interpType, double coords[]) argument
319 makeBufferedImage(Image img, Color bgColor, int type, int sx1, int sy1, int sx2, int sy2) argument
337 renderImageXform(SunGraphics2D sg, Image img, AffineTransform tx, int interpType, int sx1, int sy1, int sx2, int sy2, Color bgColor) argument
550 renderImageCopy(SunGraphics2D sg, Image img, Color bgColor, int dx, int dy, int sx, int sy, int w, int h) argument
606 renderImageScale(SunGraphics2D sg, Image img, Color bgColor, int interpType, int sx1, int sy1, int sx2, int sy2, double dx1, double dy1, double dx2, double dy2) argument
667 scaleImage(SunGraphics2D sg, Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgColor) argument
825 getBufferedImage(Image img) argument
1005 copyImage(SunGraphics2D sg, Image img, int x, int y, Color bgColor, ImageObserver observer) argument
1021 copyImage(SunGraphics2D sg, Image img, int dx, int dy, int sx, int sy, int w, int h, Color bgColor, ImageObserver observer) argument
1040 scaleImage(SunGraphics2D sg, Image img, int x, int y, int width, int height, Color bgColor, ImageObserver observer) argument
1058 scaleImage(SunGraphics2D sg, Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgColor, ImageObserver observer) argument
1077 transformImage(SunGraphics2D sg, Image img, AffineTransform atfm, ImageObserver observer) argument
1093 transformImage(SunGraphics2D sg, BufferedImage img, BufferedImageOp op, int x, int y) argument
[all...]
H A DNullPipe.java122 public boolean copyImage(SunGraphics2D sg, Image img, argument
128 public boolean copyImage(SunGraphics2D sg, Image img, argument
134 public boolean scaleImage(SunGraphics2D sg, Image img, int x, int y, argument
140 public boolean scaleImage(SunGraphics2D sg, Image img, argument
147 public boolean transformImage(SunGraphics2D sg, Image img, argument
152 public void transformImage(SunGraphics2D sg, BufferedImage img, argument
/openjdk7/jdk/src/share/classes/java/awt/image/
H A DPixelGrabber.java48 * public void handlepixels(Image img, int x, int y, int w, int h) {
50 * PixelGrabber pg = new PixelGrabber(img, x, y, w, h, pixels, 0, w);
104 * @param img the image to retrieve pixels from
118 public PixelGrabber(Image img, int x, int y, int w, int h, argument
120 this(img.getSource(), x, y, w, h, pix, off, scansize);
171 * @param img the image to retrieve the image data from
182 public PixelGrabber(Image img, int x, int y, int w, int h, argument
185 producer = img.getSource();
/openjdk7/jdk/src/share/classes/java/awt/
H A DGraphics2D.java537 * @param img the specified image to be rendered.
538 * This method does nothing if <code>img</code> is null.
552 public abstract boolean drawImage(Image img, argument
564 * img1 = op.filter(img, null);
568 * @param img the specified <code>BufferedImage</code> to be rendered.
569 * This method does nothing if <code>img</code> is null.
581 public abstract void drawImage(BufferedImage img, argument
598 * @param img the image to be rendered. This method does
599 * nothing if <code>img</code> is null.
607 public abstract void drawRenderedImage(RenderedImage img, argument
641 drawRenderableImage(RenderableImage img, AffineTransform xform) argument
[all...]
H A DMediaTracker.java891 ImageMediaEntry(MediaTracker mt, Image img, int c, int w, int h) { argument
893 image = img;
898 boolean matches(Image img, int w, int h) { argument
899 return (image == img && width == w && height == h);
938 public boolean imageUpdate(Image img, int infoflags, argument
H A DGraphics.java870 * @param img the specified image to be drawn. This method does
871 * nothing if <code>img</code> is null.
882 public abstract boolean drawImage(Image img, int x, int y, argument
907 * @param img the specified image to be drawn. This method does
908 * nothing if <code>img</code> is null.
921 public abstract boolean drawImage(Image img, int x, int y, argument
949 * @param img the specified image to be drawn. This method does
950 * nothing if <code>img</code> is null.
963 public abstract boolean drawImage(Image img, int x, int y, argument
992 * @param img th
1008 drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer) argument
1063 drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer) argument
1124 drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/common/
H A DPaletteBuilder.java100 * <code>img</code>. If number of colors in the given image exceeds
103 * @exception IllegalArgumentException if <code>img</code> is
107 * is unable to create approximation of <code>img</code>
115 public static IndexColorModel createIndexColorModel(RenderedImage img) { argument
116 PaletteBuilder pb = new PaletteBuilder(img);
/openjdk7/jdk/src/solaris/native/sun/java2d/loops/
H A Dmlib_v_ImageClear_f.c45 type *pimg = (type *) mlib_ImageGetData(img); \
46 mlib_s32 img_height = mlib_ImageGetHeight(img); \
47 mlib_s32 img_width = mlib_ImageGetWidth(img); \
48 mlib_s32 img_stride = mlib_ImageGetStride(img) / sizeof(type); \
70 void mlib_v_ImageClear_BIT_1(mlib_image *img, argument
73 mlib_u8 *pimg = (mlib_u8 *) mlib_ImageGetData(img);
74 mlib_s32 img_height = mlib_ImageGetHeight(img);
75 mlib_s32 img_width = mlib_ImageGetWidth(img);
76 mlib_s32 img_stride = mlib_ImageGetStride(img);
77 mlib_s32 img_bitoff = mlib_ImageGetBitOffset(img);
151 mlib_v_ImageClear_BIT_2(mlib_image *img, const mlib_s32 *color) argument
237 mlib_v_ImageClear_BIT_3(mlib_image *img, const mlib_s32 *color) argument
342 mlib_v_ImageClear_BIT_4(mlib_image *img, const mlib_s32 *color) argument
429 mlib_v_ImageClear_U8_1(mlib_image *img, const mlib_s32 *color) argument
460 mlib_v_ImageClear_U8_2(mlib_image *img, const mlib_s32 *color) argument
493 mlib_v_ImageClear_U8_3(mlib_image *img, const mlib_s32 *color) argument
551 mlib_v_ImageClear_U8_4(mlib_image *img, const mlib_s32 *color) argument
584 mlib_v_ImageClear_S16_1(mlib_image *img, const mlib_s32 *color) argument
614 mlib_v_ImageClear_S16_2(mlib_image *img, const mlib_s32 *color) argument
646 mlib_v_ImageClear_S16_3(mlib_image *img, const mlib_s32 *color) argument
703 mlib_v_ImageClear_S16_4(mlib_image *img, const mlib_s32 *color) argument
737 mlib_v_ImageClear_S32_1(mlib_image *img, const mlib_s32 *color) argument
769 mlib_v_ImageClear_S32_2(mlib_image *img, const mlib_s32 *color) argument
800 mlib_v_ImageClear_S32_3(mlib_image *img, const mlib_s32 *color) argument
854 mlib_v_ImageClear_S32_4(mlib_image *img, const mlib_s32 *color) argument
[all...]
/openjdk7/jdk/src/solaris/native/sun/java2d/x11/
H A DX11TextRenderer_md.c43 XImage *img; local
48 img = XCreateImage(awt_display, NULL, 1, XYBitmap, 0, 0,
50 if (img != NULL) {
51 image_size = img->bytes_per_line * TEXT_BM_HEIGHT;
53 img->data = (char *) malloc(image_size);
54 if (img->data == NULL) {
55 XFree(img);
58 img->bitmap_bit_order = img->byte_order;
59 cData->monoImage = img;
[all...]
/openjdk7/jdk/test/java/awt/print/PrinterJob/ImagePrinting/
H A DClippedImages.java154 BufferedImage img = null; field in class:ClippedImageCanvas
158 img = new BufferedImage(sw, sh, BufferedImage.TYPE_INT_RGB);
159 Graphics2D g2d = img.createGraphics();
265 g.drawImage(img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, null);
/openjdk7/jdk/test/sun/java2d/SunGraphics2D/
H A DPolyVertTest.java401 public static void test(Image img, String name) { argument
402 Graphics2D g2d = (Graphics2D) img.getGraphics();
405 verify(img, name);
415 public static void verify(Image img, String name) { argument
417 if (img instanceof BufferedImage) {
418 bimg = (BufferedImage) img;
423 g.drawImage(img, 0, 0, null);
565 Image img = testCanvas.createImage(TESTWIDTH, TESTHEIGHT);
566 test(img, "Offscreen");
602 Image img
[all...]
/openjdk7/jdk/src/share/classes/java/awt/peer/
H A DComponentPeer.java414 * @param img the image to prepare
424 boolean prepareImage(Image img, int w, int h, ImageObserver o); argument
430 * @param img the image to check
439 int checkImage(Image img, int w, int h, ImageObserver o); argument
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaIcon.java138 final Image img = createImage();
140 //if (RuntimeOptions.getRenderer(null) != RuntimeOptions.Sun) return img;
141 return getProgressiveOptimizedImage(img, getIconWidth(), getIconHeight());
144 static Image getProgressiveOptimizedImage(final Image img, final int w, final int h) { argument
145 if (img == null) return null;
147 final int halfImgW = img.getWidth(null) / 2;
148 final int halfImgH = img.getHeight(null) / 2;
149 if (w * 2 > halfImgW && h * 2 > halfImgH) return img;
154 g.drawImage(img, 0, 0, halfImgW, halfImgH, null);
201 final BufferedImage img
[all...]
/openjdk7/jdk/src/macosx/classes/sun/java2d/
H A DCompositeCRenderer.java245 protected boolean blitImage(SunGraphics2D sg2d, Image img, boolean fliph, boolean flipv, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh, Color bgColor) { argument
291 g.drawImage(img, dx, dy, dx + dw, dy + dh, sx, sy, sx2, sy2, null);
/openjdk7/jdk/src/share/demo/applets/DitherTest/
H A DDitherTest.java260 Image img = calculateImage();
261 if (img != null && runner == Thread.currentThread()) {
262 canvas.setImage(img);
299 private Image img; field in class:DitherCanvas
306 if (img == null) {
314 g.drawImage(img, 0, 0, w, h, this);
334 return img;
337 public void setImage(Image img) { argument
338 this.img = img;
[all...]

Completed in 80 milliseconds

1234