Changeset 194 for oup/current/Global


Ignore:
Timestamp:
May 26, 2007, 8:26:48 PM (18 years ago)
Author:
alloc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Global/OniImgClass.pas

    r193 r194  
    1616    function GetImageFormat: TImageFormat;
    1717    procedure SetImageFormat(Format: TImageFormat);
     18    function pGetImageFormatInfo: TImageFormatInfo;
    1819    function GetHasMipMaps: Boolean;
    1920  protected
     
    2425    property Height[MipGen: Integer]: Integer   read GetHeight;
    2526    property Format: TImageFormat read GetImageFormat write SetImageFormat;
     27    property FormatInfo: TImageFormatInfo read pGetImageFormatInfo;
    2628    property HasMipMaps: Boolean read GetHasMipMaps;
    2729
     
    128130    for i := 0 to High(FImages) do
    129131      ConvertImage(FImages[i], Format);
     132end;
     133
     134
     135function TOniImage.pGetImageFormatInfo: TImageFormatInfo;
     136begin
     137  if Length(FImages) > 0 then
     138    GetImageFormatInfo(FImages[0].Format, Result);
    130139end;
    131140
Note: See TracChangeset for help on using the changeset viewer.