[Implemented] PNG Alpha Support

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Steve Elliott
Enthusiast
Enthusiast
Posts: 109
Joined: Sun Jan 01, 2006 9:34 pm
Location: Wales, UK

[Implemented] PNG Alpha Support

Post by Steve Elliott »

I recently posted the question:

I've just bought Pure BASIC and while alpha seems to be supported; how do you load and display a PNG image correctly when the image contains alpha information?

I was told this was going to be introduced in version 4 - can the producers of Pure BASIC confirm this? If it's not going to be introduced soon then it's a big request from me. :wink:
Steve Elliott
Enthusiast
Enthusiast
Posts: 109
Joined: Sun Jan 01, 2006 9:34 pm
Location: Wales, UK

Post by Steve Elliott »

Any thoughts? :D
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

Steve Elliott wrote:Any thoughts? :D
I'm thinking about going on hoilidays right now :)
Steve Elliott
Enthusiast
Enthusiast
Posts: 109
Joined: Sun Jan 01, 2006 9:34 pm
Location: Wales, UK

Post by Steve Elliott »

Not until PNG Alpha is included you're not! :wink:

Seriously, I've used PNG Alpha in another language which I don't want to use anymore (for various reasons).

And using 3d sprites can give the effect of true 3d models - but will run much faster because it's just a flat surface and only 2 polygons per object.

Take a look at my chess program which uses scaling and rotation on the pieces and shadows to give the 3d effect:

http://www.elliottproductions.co.uk/board1.html
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

It should be in v4 ;).
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> Take a look at my chess program [...]
> http://www.elliottproductions.co.uk/board1.html

Looks great! Got this bookmarked to keep an eye on. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Steve Elliott
Enthusiast
Enthusiast
Posts: 109
Joined: Sun Jan 01, 2006 9:34 pm
Location: Wales, UK

Post by Steve Elliott »

Thanks! :D
robleong
User
User
Posts: 38
Joined: Mon May 19, 2003 10:20 pm
Location: San Francisco bay area, California, USA
Contact:

Post by robleong »

Black Knight looks amazing, Steve - can't wait to play the game! :)
Post Reply