Si está
Comenté esta línea //ohBmp:End()
y funciona.
Gracias.
Saludos,
Adhemar
acuellar wrote:Manuel
Hay diferencia entre usar BITMAP o IMAGE
Ya probé y con ambos funciona.
Gracias.
Saludos,
Adhemar
Function oBmpLoadFromStr( oBmp, cStr, nWidth, nHeight )
local hBmpOld := oBmp:hBitmap
local hPalOld := oBmp:hPalette
local ohBmp
local hBmp := 0
if ! Empty( cStr )
ohBmp := GDIBmp():new()
ohBmp:LoadFromStr( cStr )
if ( ! Empty( nWidth ) .or. ! Empty( nHeight ) )
ohBmp:Resize( nWidth, nHeight )
endif
hBmp := ohBmp:GetGDIHbitmap()
ohBmp:End()
endif
oBmp:hBitmap := hBmp
oBmp:hPalette := 0
if ! Empty( hBmpOld )
PalBmpFree( hBmpOld, hPalOld )
endif
RETURN nil
ohBmp := GDIBmp():new()
msginfo(ohbmp:hbmp)
ohBmp:LoadFromStr( cStr )
msginfo(ohbmp:hbmp)
if ( ! Empty( nWidth ) .or. ! Empty( nHeight ) )
ohBmp:Resize( nWidth, nHeight )
endif
hBmp := ohBmp:GetGDIHbitmap()
msginfo(hbmp)
msginfo(ohbmp:hbmp)
ohBmp:End()
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: Google [Bot] and 73 guests