Jump to content

How can I change PNG image background color?


Robert G.

Recommended Posts

There are several ways depending on your situation:

1. Your image editor can specify the background color as part of the png file format. Images like this will be displayed with full alpha blending.

2. If you are using the gwinImage object you can specify the background color using the widget style bacground color. Alpha in the image is handled using a cliff value. Alpha values above the cliff are plotted, alpha values below the cliff are left transparent. 

3. If just using GDISP then the API link by joel above is the solution. The same cliff characteristics as for point 2 above apply.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...