Hello,
I am having a problem on figuring out how to cut a image, I need to get
an specified part of a image (where x and y may be in the middle of the
image) and use it to paste on the surface.
I was thinking on SetClipRect but it only specify the blitting surface
of the destionation, not the source.
Someone have any idea?
Thanks
Piero
SDL_BlitSurface let’s you specify the begining x and y, along with the
width and height in the SDL_Rect structure passed as src.
Piero B. Contezini wrote:> Hello,
I am having a problem on figuring out how to cut a image, I need to get
an specified part of a image (where x and y may be in the middle of the
image) and use it to paste on the surface.
I was thinking on SetClipRect but it only specify the blitting surface
of the destionation, not the source.
Someone have any idea?
Thanks
Piero
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl