Name

height

Description

The height of the image in units of pixels.

Examples

  • PImage photo;
    
    void setup() {
      size(400, 400);
      photo = loadImage("mt-horai.jpg");
    }
    
    void draw() {
      image(photo, 0, 0);
    }
    Image output for example 1

Syntax

  • pimg.height

Parameters

  • pimg