Notice: This is a static archive of the Mobile Processing website, as the project is no longer significantly active. All forms and the Discourse boards are no longer functional, and the mobile website at http://wapmp.at/ is no longer available. Please visit the Mobile Processing Google Group for any remaining discussions and the Processing website for the latest news about Processing.
Index
Name

PImageLabel

Examples
PContainer container;
PImageLabel imglabel;
PLabel label;

void setup() {
  container = new PContainer();
  
  PImage img = loadImage("mobile.png");
  imglabel = new PImageLabel(img);
  imglabel.setBounds((width - img.width) / 2, 
                     (height - img.height) / 2,
                     img.width,
                     img.height);  
  container.add(imglabel);
  int y = imglabel.y + imglabel.height;
  
  label = new PLabel("Text Label");
  label.align = CENTER;
  label.setBounds(0, y, width, height - y);
  container.add(label);
}

void draw() {
  background(255);
  container.draw();
}

Description A PImageLabel component allows an image to be displayed with other components in a container.
Constructors
PImageLabel(img)
Parameters
the   image to display

Related PComponent