FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Pasar Imagen gdi+ a gdi
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Pasar Imagen gdi+ a gdi
Posted: Wed Dec 03, 2014 10:14 PM
pues parece que funciona bien ...

Code (fw): Select all Collapse
function Main()

   local oWnd
   local oImage 

   DEFINE WINDOW oWnd TITLE "Testing GDI+ Class" FROM 5,5 TO 600, 800 PIXEL
   
   @ 3, 38 BITMAP oimage File "hola" size 120,120 of oWnd // cargamos la imagen en vacio.

   ACTIVATE WINDOW oWnd on init cogeimagen() ;
      ON PAINT Gditest(  oImage )

return nil

function Gditest(  oImage )
  
   // local cfile:= cGetfile("escoge una imagen")  // funciona también con png 

  local cFile := "c:\fwh\bitmaps\pngs\image6.png"
   local obmp:= gdiBmp():new( cFile )
  oImage:hBitmap := GDIPLUSCREATEHBITMAPIMAGE( obmp:hbmp )  
  oImage:HasAlpha()
  oimage:refresh()

 Return nil
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: Pasar Imagen gdi+ a gdi
Posted: Wed Dec 03, 2014 10:20 PM

Venga Manuel ! Estás llevando fwh más lejos.

Muchas gracias por tus grandes aportaciones.

Si tu estás en paro, con lo que dominas, no sé donde voy a parar yo.

Un cordial saludo.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Pasar Imagen gdi+ a gdi
Posted: Thu Dec 04, 2014 08:49 AM

Manuel,

Estás que te sales!!! :-D

Mil gracias

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion