This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Bitmap Scaling Algorithm Needed


Bitmap Scaling Algorithm Needed

Postby Dan East » Mar 2, 2002 @ 5:37pm

Okay graphic gurus, I'm in need of an algorithm to scale bitmaps. I think this request is a little different from the typical type of routine needed for games. The algorithm must have the following qualities:

1: Quality is paramount.
2: Antialiasing is required.
3: Must handle very small bitmaps optimally (like 16x16 -> 12x12, or 16x16 -> 20x20).
4: Performance is not an issue.
5: Will primarily be used only with 16x16 source bitmaps.
6: All scaling will maintain existing aspect ratio.

Thanks!

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Hosed » Mar 2, 2002 @ 5:52pm

SDL has a stretching routine you may want to look at. It uses anti-aliasing, etc. I think this is the right link. It also rotates, but should give you a good gist of the algorithm. http://www.ferzkopp.net/Software/SDL_ro ... index.html
User avatar
Hosed
pm Member
 
Posts: 249
Joined: Jan 3, 2002 @ 2:51am
Location: Montana, USA


Postby Digby » Mar 2, 2002 @ 8:20pm

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum