> On Jun 11, 2015, at 6:50 AM, S.Vieira <jwvsan...@outlook.com> wrote: > > Hi everyone. > > I am trying show a image with UEFI > > (i see a example in http://uefi.blogspot.com.br/) > > But does not worked . > > Can help me Somebody ?! >
The edk2 supports BMP logos on boot: The Logo is a bmp file: https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdeModulePkg/Logo/Logo.bmp I assume you are looking for the code to convert a BMP into a GOP Blt buffer. https://svn.code.sf.net/p/edk2/code/trunk/edk2/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c /** Convert a *.BMP graphics image to a GOP blt buffer. If a NULL Blt buffer is passed in a GopBlt buffer will be allocated by this routine. If a GopBlt buffer is passed in it will be used if it is big enough. @param BmpImage Pointer to BMP file @param BmpImageSize Number of bytes in BmpImage @param GopBlt Buffer containing GOP version of BmpImage. @param GopBltSize Size of GopBlt in bytes. @param PixelHeight Height of GopBlt/BmpImage in pixels @param PixelWidth Width of GopBlt/BmpImage in pixels @retval EFI_SUCCESS GopBlt and GopBltSize are returned. @retval EFI_UNSUPPORTED BmpImage is not a valid *.BMP image @retval EFI_BUFFER_TOO_SMALL The passed in GopBlt buffer is not big enough. GopBltSize will contain the required size. @retval EFI_OUT_OF_RESOURCES No enough buffer to allocate. **/ EFI_STATUS ConvertBmpToGopBlt ( IN VOID *BmpImage, IN UINTN BmpImageSize, IN OUT VOID **GopBlt, IN OUT UINTN *GopBltSize, OUT UINTN *PixelHeight, OUT UINTN *PixelWidth ) Thanks, Andrew Fish > > Source code of the example: > > http://sourceforge.net/p/syslibforuefi/code/HEAD/tree/trunk/Applications/ > > > Thx S.Vieira > > > ------------------------------------------------------------------------------ > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/edk2-devel ------------------------------------------------------------------------------ _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel