Fixed view with transparence. Fixed Another bit mode view. All extractable PNGs are paletted if TIM is such one. Preparing to Tim<->Png converting.
This commit is contained in:
6
utim.pas
6
utim.pas
@@ -104,6 +104,7 @@ type
|
||||
PTIM = ^TTIM;
|
||||
|
||||
function TIMHasCLUT(TIM: PTIM): Boolean;
|
||||
function TIMisIndexed(TIM: PTIM): Boolean;
|
||||
function GetTIMCLUTSize(TIM: PTIM): Integer;
|
||||
function GetTIMSize(TIM: PTIM): Integer;
|
||||
function GetTimWidth(TIM: PTIM): word;
|
||||
@@ -189,6 +190,11 @@ begin
|
||||
Result := TIM^.IMAGE^.wHeight;
|
||||
end;
|
||||
|
||||
function TIMisIndexed(TIM: PTIM): Boolean;
|
||||
begin
|
||||
Result := TIM^.HEAD^.bBPP in [cTIM4C, cTIM4NC, cTIM8C, cTIM8NC];
|
||||
end;
|
||||
|
||||
function GetTIMCLUTSize(TIM: PTIM): Integer;
|
||||
begin
|
||||
Result := 0;
|
||||
|
||||
Reference in New Issue
Block a user