FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   BImage Properties
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: BImage Properties  (Read 2230 times)
Dimitre

WWW
BImage Properties
« on: Nov 20th, 2002, 8:45pm »

Is there a way for me to know the properties of the loaded BImage, such width and height?
thanks
 
fry


WWW
Re: BImage Properties
« Reply #1 on: Nov 20th, 2002, 8:55pm »

yup.. super simple:
 
Code:
Bimage image;
int w = image.width;
int h = image.height;
 
// also...
int pix[] = image.pixels;
int format = image.format; // RGB or ALPHA
 
Dimitre

WWW
Re: BImage Properties
« Reply #2 on: Nov 22nd, 2002, 5:09pm »

very thanks fry!
 
Peroki


Re: BImage Properties
« Reply #3 on: Feb 28th, 2004, 5:39pm »

Hello, is there a way to GET the brightness, or color of a pixel of a BImage?
 
Peroki


Re: BImage Properties
« Reply #4 on: Feb 28th, 2004, 6:10pm »

Hello, is there a way to GET the brightness, or color of a pixel of a BImage?
 
Mythmon


Re: BImage Properties
« Reply #5 on: Feb 28th, 2004, 6:37pm »

a shot iin the dark here, but maybe it might be something along the lines of image.get(x,y) ?
 
REAS


WWW
Re: BImage Properties
« Reply #6 on: Feb 28th, 2004, 9:34pm »

It's in the Reference:
 
http://processing.org/reference/BImage_get_.html
 
Pages: 1 

« Previous topic | Next topic »