Search found 9 matches

by mkeeley
Sat Feb 11, 2006 10:42 pm
Forum: GFL SDK
Topic: Delphi AV When Using gflGetColorAt
Replies: 15
Views: 6638

Thanks that seems to work fine!

So in LibGFL.pas 3 lines need changing.



Starting Line 135, Alpha added:

// Color
type PGFL_COLOR = ^TGFL_COLOR;
TGFL_COLOR = record
Red: GFL_UINT16;
Green: GFL_UINT16;
Blue: GFL_UINT16;
Alpha : GFL_UINT16;
end;




Starting Line 542, PGFL_COLOR changed ...
by mkeeley
Fri Feb 03, 2006 3:08 pm
Forum: GFL SDK
Topic: Delphi AV When Using gflGetColorAt
Replies: 15
Views: 6638

Yes it starts off as a 24bit BMP, I then greyscale it and then set it back to RGB and Gamma correct to make it lighter.

I removed the greysacle/RGB, gamma and SetColorAt lines so just ended up with a loop performing a GetColorAt's and it still AV'ed.

Before, as an experiment, I removed the ...
by mkeeley
Thu Feb 02, 2006 4:32 pm
Forum: GFL SDK
Topic: Delphi AV When Using gflGetColorAt
Replies: 15
Views: 6638

I assumed it would be, so looped from 0 to width/height -1 but it Av'ed so I thought I'd try 1 to width/height just in case but didn't help!

To other members using Delphi (I'm using D5) has anyone used gflGetColorAt sucessfully? If so I'd appreciated it if you'd have a quick look at my function ...
by mkeeley
Wed Feb 01, 2006 8:03 pm
Forum: GFL SDK
Topic: Delphi & Maskcolor/Usetransparency
Replies: 4
Views: 2089

Hello

Don't understand how I'd use TransparentIndex. I assume it's the index in to the colour palette for the transparency colour. However how do I work out what to set it to, my background as usual is #ff00ff.

Also, by default, the BMP's are 24bit but TransparentIndex is only a Int16 (although ...
by mkeeley
Wed Feb 01, 2006 7:54 pm
Forum: GFL SDK
Topic: Delphi AV When Using gflGetColorAt
Replies: 15
Views: 6638

You mean have two source images, one being the mask and the other the actual graphic? If so unfortunately that's not really practical as I'll want to convert 1000+ toolbar images all of which are BMP's with #FF00FF backgrounds.

Or is there a way to do this using your library? Couldn't find anything ...
by mkeeley
Wed Feb 01, 2006 7:41 pm
Forum: GFL SDK
Topic: Delphi & Greyscaling Alpha Blended PNG's
Replies: 4
Views: 2157

Hello Pierre


Yes the alpha-blended PNG is 32 bit, just want to grey scale it and lighten it with some Gamma correction whilst still keeping the alpha-blending.

Marc
by mkeeley
Wed Feb 01, 2006 12:26 am
Forum: GFL SDK
Topic: Delphi AV When Using gflGetColorAt
Replies: 15
Views: 6638

Sorry, hadn't logged in!
by mkeeley
Tue Jan 31, 2006 7:19 pm
Forum: GFL SDK
Topic: Delphi & Greyscaling Alpha Blended PNG's
Replies: 4
Views: 2157

Delphi & Greyscaling Alpha Blended PNG's

Hello again,

I'm stuck with another problem. I'm trying to greyscale and then lighten using Gamma correction an alpha-blended PNG image. I then want to save it out as a greyscaled alpha-blended png.

I've tried using the LoadParam ColorModel := GFL_GREY, but the output is still coloured but ...
by mkeeley
Sun Jan 29, 2006 7:53 pm
Forum: GFL SDK
Topic: Delphi & Maskcolor/Usetransparency
Replies: 4
Views: 2089

Delphi & Maskcolor/Usetransparency

Hello

I'm writing a small utility in Delphi 5 that converts BMP toolbar images I've created in various ways. As you probably know the colour bottom left pixel defines what counts as transparent. I use RGB FF00FF, so all pixels that are that colour apear transparent in the toolbar.

The first test ...