Transparency in PNG

Post Reply
User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Transparency in PNG

Post by rbytes »

The documentation mentions that the GRAPHICS SAVE command can save either jpg or PNG image files, and that PNGs can contain transparency information. Is there any way in smartBASIC to generate transparency? I am working on a title editing app, and would like to be able to save a title with the letters on a transparent background.
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Transparency in PNG

Post by Mr. Kibernetik »

1) You can clear canvas background with GRAPHICS CLEAR command - and it will become transparent

2) You can use GRAPHICS MODE command for multiple visual effects including transparency

3) When you create sprite - it has transparent background

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Transparency in PNG

Post by rbytes »

Thank you.
The only thing that gets me down is gravity...

Post Reply