X-Git-Url: https://code.delx.au/refind/blobdiff_plain/2e3bba9a37cdc8e40e3482e72287881640a11744..bda402d8bb74587c5a813c94a0c8626e0e4f18fe:/libeg/libeg.h diff --git a/libeg/libeg.h b/libeg/libeg.h index 80731e4..5f55422 100644 --- a/libeg/libeg.h +++ b/libeg/libeg.h @@ -71,7 +71,7 @@ typedef struct { #define EG_EICOMPMODE_RLE (1) #define EG_EICOMPMODE_EFICOMPRESS (2) -#define ICON_EXTENSIONS L"icns,png" +#define ICON_EXTENSIONS L"png,icns" typedef struct { UINTN Width; @@ -100,6 +100,7 @@ EG_IMAGE * egCreateImage(IN UINTN Width, IN UINTN Height, IN BOOLEAN HasAlpha); EG_IMAGE * egCreateFilledImage(IN UINTN Width, IN UINTN Height, IN BOOLEAN HasAlpha, IN EG_PIXEL *Color); EG_IMAGE * egCopyImage(IN EG_IMAGE *Image); EG_IMAGE * egCropImage(IN EG_IMAGE *Image, IN UINTN StartX, IN UINTN StartY, IN UINTN Width, IN UINTN Height); +EG_IMAGE * egScaleImage(EG_IMAGE *Image, UINTN NewWidth, UINTN NewHeight); VOID egFreeImage(IN EG_IMAGE *Image); EG_IMAGE * egLoadImage(IN EFI_FILE* BaseDir, IN CHAR16 *FileName, IN BOOLEAN WantAlpha); @@ -142,6 +143,8 @@ EG_IMAGE * egCopyScreen(VOID); VOID egScreenShot(VOID); BOOLEAN egSetTextMode(UINT32 RequestedMode); +EG_IMAGE * egDecodePNG(IN UINT8 *FileData, IN UINTN FileDataLength, IN UINTN IconSize, IN BOOLEAN WantAlpha); + #endif /* __LIBEG_LIBEG_H__ */ /* EOF */