Skip to main content

[JAVA2D] what does black rectangle mean?

2 replies [Last post]
Anonymous

Hi

I haven't looked at Java2D in 10 years, so I've forgotten the answer to this
pedestrian question, but what does it generally mean when your filtered
image renders as all black?

Thanks.
JLB
--
View this message in context: http://www.nabble.com/what-does-black-rectangle-mean--tp16731772p1673177...
Sent from the Sun - Java2D-Interest mailing list archive at Nabble.com.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Wasin Thonkaew

I suggest you mean like the following, (if i right)

For the certain process of drawing, many frames will generally be drawn on
the screen.
So the previous drawn-frame still exist if we dont "clear" the screen, and
if we dont the result of drawing will be mess and strange.

This means to clear the screen.

On Thu, Apr 17, 2008 at 2:30 AM, jlb wrote:

> Hi
>
> I haven't looked at Java2D in 10 years, so I've forgotten the answer to
> this
> pedestrian question, but what does it generally mean when your filtered
> image renders as all black?
>
> Thanks.
> JLB
> --
> View this message in context:
> http://www.nabble.com/what-does-black-rectangle-mean--tp16731772p1673177...
> Sent from the Sun - Java2D-Interest mailing list archive at Nabble.com.
>
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Karen Johnson

Not sure if this is your problem, but I seem to recall in the past
having an image render all black after creating a graphics context from
a buffered image.

Doing a graphics setColor() and fillRect() prior to rendering into the
image fixed it.

KJ

-----Original Message-----
From: Discussion list for Java 2D API
[mailto:JAVA2D-INTEREST@JAVA.SUN.COM] On Behalf Of jlb
Sent: Wednesday, April 16, 2008 3:31 PM
To: JAVA2D-INTEREST@JAVA.SUN.COM
Subject: [JAVA2D] what does black rectangle mean?

Hi

I haven't looked at Java2D in 10 years, so I've forgotten the answer to
this
pedestrian question, but what does it generally mean when your filtered
image renders as all black?

Thanks.
JLB
--
View this message in context:
http://www.nabble.com/what-does-black-rectangle-mean--tp16731772p1673177
2.html
Sent from the Sun - Java2D-Interest mailing list archive at Nabble.com.

========================================================================
===
To unsubscribe, send email to listserv@java.sun.com and include in the
body
of the message "signoff JAVA2D-INTEREST". For general help, send email
to
listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".