Enlarging Canvas size using GFL

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

Guest

Enlarging Canvas size using GFL

Post by Guest »

Hello,

I have tried to use your ASP component in order to add a small section in the images manipulated. The procedure I am using is as the following:

- Enlarge the canvas size while keeping the width of the original image
- Add a text to the resulted section on the bottom of the new image

This is done with no problems with jpg , bmp files. However, when trying to do the same with GIF files, the resulted section is usually not set to the exact colour as desired.

Any idea of how to solve this problem??

[/img]
User avatar
xnview
Author of XnView
Posts: 43132
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Enlarging Canvas size using GFL

Post by xnview »

Anonymous wrote:Hello,

I have tried to use your ASP component in order to add a small section in the images manipulated. The procedure I am using is as the following:

- Enlarge the canvas size while keeping the width of the original image
- Add a text to the resulted section on the bottom of the new image

This is done with no problems with jpg , bmp files. However, when trying to do the same with GIF files, the resulted section is usually not set to the exact colour as desired.

Any idea of how to solve this problem??

[/img]
Try to convert your picture in RGB before.
Pierre.
Guest

Re: Enlarging Canvas size using GFL

Post by Guest »

xnview wrote:
Anonymous wrote:Hello,

I have tried to use your ASP component in order to add a small section in the images manipulated. The procedure I am using is as the following:

- Enlarge the canvas size while keeping the width of the original image
- Add a text to the resulted section on the bottom of the new image

This is done with no problems with jpg , bmp files. However, when trying to do the same with GIF files, the resulted section is usually not set to the exact colour as desired.

Any idea of how to solve this problem??

[/img]
Try to convert your picture in RGB before.
Pierre.
Do I use swapcolors method for this?? or I have to do the conversion manually for every picture?
User avatar
xnview
Author of XnView
Posts: 43132
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Enlarging Canvas size using GFL

Post by xnview »

Anonymous wrote:Do I use swapcolors method for this?? or I have to do the conversion manually for every picture?
No, use ChangeColorDepth
Pierre.