CreateImage: optional background color

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

CreateImage: optional background color

Post by netmaestro »

Currently, to create a transparent image you have to supply 32|#PB_Image_Transparent for the depth. This is not very intuitive imho and could be improved by adding one more optional parameter to CreateImage, for the background color of the coder's choice. One of these could be #PB_Image_Transparent, which I think is a much better place for it. Also, with the enhanced functionality of being able to choose any background color, we are saved lots of keystrokes with startdrawing, box, etc.
BERESHEIT
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: CreateImage: optional background color

Post by IdeasVacuum »

A definite +1 :mrgreen:
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply