Jump to content
weabow

[SOLVED] TAlphaColors : what am I doing wrong ?

Recommended Posts

Fault is mine : no problem at all

 

Hi there,

 

I need to extract evry filed in TAlphaColor. Here's my sample code :
 

var Red, Green, Blue, Alpha: byte;
begin

  paletteColor:= TAlphaColorRec.Create(TAlphaColors.Blue)

  Alpha := paletteColor.A;
  Red := paletteColor.R;
  Green := paletteColor.G;
  Blue := paletteColor.B;

 

My problem is that Alpha is OK (255), but other fields return 0

 

An idea ?

 

 

Edited by weabow
error

Share this post


Link to post

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

×