Hi..
I want to Create a tool to view a custom image file. the problem is
I don't know how to implement the alpha value into the Pixel
Here some part of my code :
Code:
type tPalleteColor = record
red : byte;
green : byte;
blue : byte;
alpha : byte;
end;
type tTilePAL = record
TileType : Char;
index : byte;
TilePal: array of array [0..255] of tPalleteColor;
end;
var
PalPub,PalA, PalC : tTilePAL;
BitMap:TBitmap;
bitmap.Canvas.Pixels[k,j] := RGB(SetPal.TilePal[indexofPal, value].blue, SetPal.TilePal[indexofPal, value].green, SetPal.TilePal[indexofPal, value].red)
anyone can give me a hint?
So far I don't want to use any 3rd party component
Bookmarks