|
Author |
Topic: BImage Properties (Read 2230 times) |
|
Dimitre
|
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
|
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
|
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) ?
|
|
|
|
|