Export to GitHub

ofxjavascript - ofxJSImage.wiki


Functions

  • allocate(w,h,type);
  • clear();

  • setUseTexture(bUse);

  • loadImage(fileName);

  • saveImage(fileName);

  • setImageType(type);

  • resize(newWidth,newHeight);
  • grabScreen(x,y,w,h);
  • setAnchorPercent(xPct,yPct);
  • setAnchorPoint(x,y);
  • resetAnchor();
  • getPixelAt(x,y);

  • draw(x,y,w,h);

  • draw(x,y);

Example

var myImage = new ofxJSImage(); myImage.loadImage("theImage.jpg"); // ... myImage.drawImage(0,0,of.GetWidth(), of.GetHeight());