Skip to main content

Clearing Screen on PS3..

1 reply [Last post]
bddeveloper
Offline
Joined: 2008-01-14

Hello,

I have a full screen image that at one point needs to be cleared from the screen. The following code works fine on the studio versions of WinDVD and PowerDVD. However on the PS3 the image is not cleared.

Color TRANSPARENT = new Color(0,0,0,0);
//g is not a buffered graphics object but one from the repaint call
Graphics2D graphics = (Graphics2D)g;
graphics.setComposite(AlphaComposite.Src);
graphics.setColor(TRANSPARENT);
graphics.fillRect(0, 0, 1920, 1080);

Does anyone have any ideas why the image is not cleared?

Thank you!

Scott

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
moiseslg
Offline
Joined: 2008-04-28

I have tryed In the PS3 fillrect(0,0,1920,1080) and it works.

Maybe a repaint() command is usefull too.

I Hope thist works for you