Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Shrink Bitmap

This thread is locked; no one can reply to it. rss feed Print
Shrink Bitmap
neil dwyer
Member #7,237
May 2006

Is there a way to make bitmaps smaller in allegro? In my pong game I want to be able to shoot the opposing paddle(which is a bitmap so i cant use rectfill) and upon impact, i want the opponent to get smaller.

BrknPhoenix
Member #7,304
June 2006

http://www.talula.demon.co.uk/allegro/onlinedocs/en/alleg014.html

there's stuff about stretching and scaling in there

Simon Parzer
Member #3,330
March 2003
avatar

neil dwyer
Member #7,237
May 2006

Thanks a lot! I am going to have to start memorizing that manual.

_Dante
Member #7,398
June 2006
avatar

Or have a copy of the manual open beside you. Hell, I have an HTML copy of K&R that I refer to at least once or twice a week.

[EDIT]
Yeah sorry, I meant an online copy. I've been around long enough that I've done paper and online in equal amounts, and tend to use the terms interchangably. An online copy is often more useful, as you can just C&P API calls. Paper copies of anything are for reading in transit ;). Absolutely, read the whole thing through, but just to get a general idea of what's possible with the library. Then look it up when you need to - the docs are well laid out.

-----------------------------
Anatidaephobia: The fear that somehow, somewhere, a duck is watching you

neil dwyer
Member #7,237
May 2006

My parents get mad when I use all of my ink on useless(to them) things.

Richard Phipps
Member #1,632
November 2001
avatar

The manual is online, as well as in html files with the full allegro package. There is no need to print it out or even go online..

A J
Member #3,025
December 2002
avatar

there are some high quality scaling algorymths too available.

the quality of stretch_blit() is not very high.

___________________________
The more you talk, the more AJ is right. - ML

Simon Parzer
Member #3,330
March 2003
avatar

Yeah, Bicubic Interpolation for example. It has nice quality and is very slow (lots of calculations for the CPU).

Fladimir da Gorf
Member #1,565
October 2001
avatar

For software Allegro, there's AASTR (Anti-Aliased STretching and Rotations)

OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori)

Go to: