U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » SetSurface, shrink, stretch?
SetSurface, shrink, stretch? [message #32345] Tue, 10 May 2011 14:52 Go to next message
avpavp is currently offline  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 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1796
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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
Previous Topic: TIFF wrapper: to access lib methods
Next Topic: How to make a non transparent image transparent
Goto Forum:
  


Current Time: Mon May 04 17:38:31 GMT+2 2026

Total time taken to generate the page: 0.00844 seconds