Pixel value

i have a picture in 800x600. i want to printed in 1024x768 and i am
using sdl image with the function load image but i need to know if the
value of each pixel will stay the same. for example if i hade the
first pixel color at 238 and in full screen does the value of the same
pixel stay the same.

i know the image will look the same but what i need to know is that if
each pixel conserve its values.

Simon HEBBO wrote:

i have a picture in 800x600. i want to printed in 1024x768 and i am
using sdl image with the function load image but i need to know if the
value of each pixel will stay the same. for example if i hade the
first pixel color at 238 and in full screen does the value of the same
pixel stay the same.

i know the image will look the same but what i need to know is that if
each pixel conserve its values.

I’m not sure I undetrstand your question, but here we go :

For a given color, the pixel values depends only on the current bpp.
So if you’re running 16bpp in fullscreen and 32bpp windowed, it won’t be
the same.

Stephane

Hello, so if i run 16bpp windowed and fullscreen it will be the
same??? i want only to know if i have an image when i used load image
to print it in full screen does the pixel value change even if i am in
the 16bpp.

thank u for ur help,
simonOn Fri, 12 Nov 2004 00:14:20 +0100, Stephane Marchesin <stephane.marchesin at wanadoo.fr> wrote:

Simon HEBBO wrote:

i have a picture in 800x600. i want to printed in 1024x768 and i am
using sdl image with the function load image but i need to know if the
value of each pixel will stay the same. for example if i hade the
first pixel color at 238 and in full screen does the value of the same
pixel stay the same.

i know the image will look the same but what i need to know is that if
each pixel conserve its values.

I’m not sure I undetrstand your question, but here we go :

For a given color, the pixel values depends only on the current bpp.
So if you’re running 16bpp in fullscreen and 32bpp windowed, it won’t be
the same.

Stephane


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl