en el metodo new...linea 183 +-
- Code: Select all Expand view
local hGDIBmp
........
case cBmpFile != nil
if File( cBmpFile )
if Lower( cFileExt( cBmpFile ) ) == 'bmp'
::hBitMap = ReadBitmap( 0, cBmpFile )
elseif UseGDI() .AND. UPPER( cFileExt( cBmpFile ) ) $ "PNG,JPG,EMF,WMF,JPEG" // nuevo
hGDIBmp:= GdiPlusImageLoadCachedFile( cBmpFile )
::hBitmap := GdiPlusCreateHBitmapImage( hGDIBmp )
GdiPlusImageDispose( hGDIBmp )
else // fin nuevo
::hBitmap = FILoadImg( cBmpFile, @nFormat )
::nBmpFormat = nFormat
endif
::hBrush = If( ::hBitmap != 0, CreatePatternBrush( ::hBitmap ), )
endif