FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1085 : background(PGraphics) is transparent in saveFrame(String)
Last modified: 2008-12-01 09:58
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
fjen
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-12-01 09:37
example:
PGraphics pg;
void setup ()
{
size( 300, 300 );
pg = createGraphics(width,height,g.getClass().getName());
pg.background(255);
pg.beginDraw();
pg.rect( width/2,height/2,20,20 );
pg.endDraw();
}
void draw ()
{
background( pg );
saveFrame( "test.png" );
}
the test.png is rendered with a black (transparent?) background although it has been filled
woth white before.
F
Additional Comment
#1 From fry 2008-12-01 09:41
whatcha doing calling background() outside of beginDraw()?
Additional Comment
#2 From fjen 2008-12-01 09:58
ohno, so right! how stupid ..
F