147 |
int height = img.getHeight (null); |
int height = img.getHeight (null); |
148 |
copyPixmap (img.getGraphics (), |
copyPixmap (img.getGraphics (), |
149 |
x, y, width, height); |
x, y, width, height); |
|
// FIXME: need to differentiate between SOMEBITS and FRAMEBITS. |
|
|
if (observer != null) |
|
|
observer.imageUpdate (img, |
|
|
ImageObserver.FRAMEBITS, |
|
|
x, y, width, height); |
|
150 |
return true; |
return true; |
151 |
} |
} |
152 |
|
|
166 |
int height = img.getHeight (null); |
int height = img.getHeight (null); |
167 |
copyPixmap (img.getGraphics (), |
copyPixmap (img.getGraphics (), |
168 |
x, y, width, height); |
x, y, width, height); |
|
|
|
|
// FIXME: need to differentiate between SOMEBITS and FRAMEBITS. |
|
|
if (observer != null) |
|
|
observer.imageUpdate (img, |
|
|
ImageObserver.FRAMEBITS, |
|
|
x, y, width, height); |
|
169 |
return true; |
return true; |
170 |
} |
} |
171 |
|
|
186 |
copyAndScalePixmap (img.getGraphics (), false, false, |
copyAndScalePixmap (img.getGraphics (), false, false, |
187 |
0, 0, img.getWidth (null), img.getHeight (null), |
0, 0, img.getWidth (null), img.getHeight (null), |
188 |
x, y, width, height); |
x, y, width, height); |
|
// FIXME: need to differentiate between SOMEBITS and FRAMEBITS. |
|
|
if (observer != null) |
|
|
observer.imageUpdate (img, |
|
|
ImageObserver.FRAMEBITS, |
|
|
x, y, width, height); |
|
189 |
return true; |
return true; |
190 |
} |
} |
191 |
|
|
270 |
copyAndScalePixmap (img.getGraphics (), x_flip, y_flip, |
copyAndScalePixmap (img.getGraphics (), x_flip, y_flip, |
271 |
sx_start, sy_start, s_width, s_height, |
sx_start, sy_start, s_width, s_height, |
272 |
dx_start, dy_start, d_width, d_height); |
dx_start, dy_start, d_width, d_height); |
|
|
|
|
// FIXME: need to differentiate between SOMEBITS and FRAMEBITS. |
|
|
if (observer != null) |
|
|
observer.imageUpdate (img, |
|
|
ImageObserver.FRAMEBITS, |
|
|
dx_start, dy_start, d_width, d_height); |
|
273 |
return true; |
return true; |
274 |
} |
} |
275 |
|
|
382 |
|
|
383 |
public Rectangle getClipBounds () |
public Rectangle getClipBounds () |
384 |
{ |
{ |
385 |
return new Rectangle (clip.x, clip.y, clip.width, clip.height); |
if (clip == null) |
386 |
|
return null; |
387 |
|
else |
388 |
|
return clip.getBounds(); |
389 |
} |
} |
390 |
|
|
391 |
public Color getColor () |
public Color getColor () |
426 |
|
|
427 |
public void setClip (Shape clip) |
public void setClip (Shape clip) |
428 |
{ |
{ |
429 |
setClip (clip.getBounds ()); |
if (clip != null) |
430 |
|
setClip(clip.getBounds()); |
431 |
} |
} |
432 |
|
|
433 |
private native void setFGColor(int red, int green, int blue); |
private native void setFGColor(int red, int green, int blue); |