Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1758
Registered: August 2008
Location: Czech Republic
Senior 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: Thu Nov 21 09:19:13 CET 2019

Total time taken to generate the page: 0.01560 seconds