fixup PImage defaults for subclasses (set to RGB).

This commit is contained in:
benfry
2004-09-21 01:28:12 +00:00
parent 0a2ea76e63
commit ba0fc444b9
4 changed files with 45 additions and 27 deletions

View File

@@ -321,7 +321,10 @@ public class PGraphics extends PImage
/**
* Constructor for the PGraphics object
* Constructor for the PGraphics object. Use this to ensure that
* the defaults get set properly. In a subclass, use this(w, h)
* as the first line of a subclass' constructor to properly set
* the internal fields and defaults.
*
* @param iwidth viewport width
* @param iheight viewport height