| 15 |
|
function GetHeight(MipGen: Integer): Integer; |
| 16 |
|
function GetImageFormat: TImageFormat; |
| 17 |
|
procedure SetImageFormat(Format: TImageFormat); |
| 18 |
+ |
function pGetImageFormatInfo: TImageFormatInfo; |
| 19 |
|
function GetHasMipMaps: Boolean; |
| 20 |
|
protected |
| 21 |
|
public |
| 24 |
|
property Width[MipGen: Integer]: Integer read GetWidth; |
| 25 |
|
property Height[MipGen: Integer]: Integer read GetHeight; |
| 26 |
|
property Format: TImageFormat read GetImageFormat write SetImageFormat; |
| 27 |
+ |
property FormatInfo: TImageFormatInfo read pGetImageFormatInfo; |
| 28 |
|
property HasMipMaps: Boolean read GetHasMipMaps; |
| 29 |
|
|
| 30 |
|
constructor Create; |
| 132 |
|
end; |
| 133 |
|
|
| 134 |
|
|
| 135 |
+ |
function TOniImage.pGetImageFormatInfo: TImageFormatInfo; |
| 136 |
+ |
begin |
| 137 |
+ |
if Length(FImages) > 0 then |
| 138 |
+ |
GetImageFormatInfo(FImages[0].Format, Result); |
| 139 |
+ |
end; |
| 140 |
+ |
|
| 141 |
+ |
|
| 142 |
|
function TOniImage.GetHasMipMaps: Boolean; |
| 143 |
|
begin |
| 144 |
|
Result := Length(FImages) > 1; |