PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

AlphaBlt rotozoom

Is it possible to rotozoom with BltAlpha, I did not find way. Maybe Blt rotozoomed to temp surface, and than load from memory, and than AlphaBlt?

Also is it possible to save Image with alpha information (transparency), because when I save it it changes transparency to black which is not desired effect.

Thank you for your advice...
ppcStudios · 30 Dec 2003, 21:07 UTC — AlphaBlt rotozoom
A. Cicak wrote:
Is it possible to rotozoom with BltAlpha, I did not find way. Maybe Blt rotozoomed to temp surface, and than load from memory, and than AlphaBlt?


I believe you can do this in release 2.05 but in 2.01 through 2.04 there were issues using the Blt/BltAlpha routines (ie broken).

A. Cicak wrote:
Also is it possible to save Image with alpha information (transparency), because when I save it it changes transparency to black which is not desired effect.


If you mean saving a png image with transparency, yes you can do do this with Paint Shop Pro. PSP8 makes it much easier than PSP7.
A. Cicak:

Is it possible to rotozoom with BltAlpha, I did not find way. Maybe Blt rotozoomed to temp surface, and than load from memory, and than AlphaBlt?


Unfortunately it's not possible to use the flags available with Blt in AlphaBlt. I would suggest doing as you says, blitting to a temporary surface and then AlphaBlt. Please not that you probably need to rotations, one for the image and one for the alpha.

Also is it possible to save Image with alpha information (transparency), because when I save it it changes transparency to black which is not desired effect.


If you are referring to the SaveSurface information it is not implemented yet for RGBA surfaces. Plain CGapiSurface objects do not use alpha information and thus transparency will be black (or another color).

Cheers
Johan