Full screen problem

hi
i am trying to write a small program that reads a picture than print
it in fullscreen mode. the problem is that small pictures are changing
size and i need to have a full screen with the same picture size.
could anyone help me by providing a way other the SDL_image function
IMG_Load(). is ther a way to print an image pixel per pixel in full
screen and all the rest will be black.

NB: i am new to SDL.

thank u so much
simon

You can resize the image to screen size if it’s bigger than the screen
size or just draw it in the middle if it’s less than the screen size
(x=screenw/2 - imagew/2, y=screenh/2 - imageh/2). Is this what you
want to achive?On Sat, 30 Oct 2004 16:01:47 +0200, Simon HEBBO <simon.hebbo at gmail.com> wrote:

hi
i am trying to write a small program that reads a picture than print
it in fullscreen mode. the problem is that small pictures are changing
size and i need to have a full screen with the same picture size.
could anyone help me by providing a way other the SDL_image function
IMG_Load(). is ther a way to print an image pixel per pixel in full
screen and all the rest will be black.

NB: i am new to SDL.

thank u so much
simon


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

how do you resize a image???On Sun, 2004-10-31 at 03:11, Joakim Kolsj? wrote:

You can resize the image to screen size if it’s bigger than the screen
size or just draw it in the middle if it’s less than the screen size
(x=screenw/2 - imagew/2, y=screenh/2 - imageh/2). Is this what you
want to achive?

On Sat, 30 Oct 2004 16:01:47 +0200, Simon HEBBO <simon.hebbo at gmail.com> wrote:

hi
i am trying to write a small program that reads a picture than print
it in fullscreen mode. the problem is that small pictures are changing
size and i need to have a full screen with the same picture size.
could anyone help me by providing a way other the SDL_image function
IMG_Load(). is ther a way to print an image pixel per pixel in full
screen and all the rest will be black.

NB: i am new to SDL.

thank u so much
simon


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


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

Nevyn wrote:

how do you resize a image???

You could use the SDL_gfx library.

-Sebastian