Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » SetSurface, shrink, stretch?
SetSurface, shrink, stretch? [message #32345] |
Tue, 10 May 2011 14:52 |
avpavp
Messages: 19 Registered: September 2009
|
Promising Member |
|
|
Can SetSurface be used to shrink or stretch an image (RGBA)? If so, how? If not, is there a way? What is the fastest way?
Thanks
|
|
|
Re: SetSurface, shrink, stretch? [message #32351 is a reply to message #32345] |
Tue, 10 May 2011 22:09 |
|
avpavp wrote on Tue, 10 May 2011 14:52 | Can SetSurface be used to shrink or stretch an image (RGBA)? If so, how? If not, is there a way? What is the fastest way?
Thanks
|
No, SetSurface doesn't perform any rescaling. It is intended mainly for fast picture copying (especially buffer -> screen, which is specially optimized). To rescale image, you can use for example any of the DrawImage() functions.
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Fri Sep 20 12:16:21 CEST 2024
Total time taken to generate the page: 0.03067 seconds
|