Image temp = util.createImage(s);
Graphics g = this.getGraphics();
g.drawImage(temp,0,0,this);
g.dispose();
save_img = this.createImage(canvas_width,canvas_height);
Do I need to mess around with an Image filter? They are so slow...
Thanks for any hints...
Tom
tca...@nycm.com
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
And why call dispose()?
Franklin
Image offScreenImage = this.createImage(rawWidth,rawHeight);
Graphics offScreenContext = offScreenImage.getGraphics();
offScreenContext.drawImage(image1,0,0,256,256,this);
then in the paint method,.
g.drawImage(offScreenImage,0,0,this);
Hope this helps.
Gordon.
Exception occurred during event dispatching:
java.lang.IllegalAccessError: getGraphics() only valid for images created
with createImage(w, h)
at sun.awt.windows.WImage.getGraphics(WImage.java:45)
at MotDrawCanvas.mouseDrag(MotDrawCanvas.java:102)
at java.awt.Component.handleEvent(Component.java:2356)
at java.awt.Component.postEvent(Component.java:1884)
at java.awt.Component.dispatchEventImpl(Component.java:1776)
at java.awt.Component.dispatchEvent(Component.java:1704)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)
In article <35A4F5BE...@cyberatl.net>,