hey -- It depends on what type of BufferedImage it is. If it supports transparency, you can compute the tighest box around all the non-transparent pixels. Else, you'd have to do the same thing around all the non-background-color pixels. Of course this may not give you what you want, in which case you might just want to store the information you need ...
Brien Brien Colwell <[EMAIL PROTECTED]> wrote: hey -- It depends on what type of BufferedImage it is. If it supports transparency, you can compute the tighest box around all the non-transparent pixels. Else, you'd have to do the same thing around all the non-background-color pixels. Of course this may not give you what you want, in which case you might just want to store the information you need ... Brien [EMAIL PROTECTED] wrote: How to get the height of the painted zone of a BufferedImage without keeping track of the height of the single items drawn in the painting procedure that paints on the image. Suppose you create a 400 x 400 buffered Image. You paint on it for 2/3 of the height but you don't keep any track of this. How do you know after drawing what is the really drawn height of the Image ? Estades. [Message sent by forum member 'estades' (estades)] http://forums.java.net/jive/thread.jspa?messageID=216329 =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". --------------------------------- We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".