FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour error moving a bitmap or Image
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

error moving a bitmap or Image

Posted: Wed Dec 07, 2016 11:27 AM
why if I change the size of Image or bmp fwh create black background ?
see it pls :



the code
Code (fw): Select all Collapse
 DEFINE DIALOG oDlg  SIZE 680,520 ;
        TITLE "ID Card Identification maker"

 ACTIVATE DIALOG oDlg
ON INIT paintdata(oDlg)

Function Paint_data(oWnd )
 Local cfoto := "dip.bmp"
 Local oImg

@ 13, 12 BITMAP oImg FILENAME cFoto OF oWnd    SIZE 96,115  NOBORDER     DESIGN

                         oImg:lTransparent:=.t.
return nil
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Re: error moving a bitmap or Image

Posted: Wed Dec 07, 2016 12:09 PM
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM

Re: error moving a bitmap or Image

Posted: Wed Dec 07, 2016 12:28 PM
Code (fw): Select all Collapse
#include "FiveWin.ch"

FUNCTION Main()

   LOCAL oDlg
   LOCAL cfoto := "C:\FWH1610\BITMAPS\FIVETECH.bmp"
   LOCAL oImg

   DEFINE DIALOG oDlg  SIZE 680,520 ;
          TITLE "ID Card Identification maker" ;
          COLORS CLR_BLACK, CLR_WHITE TRANSPARENT

   ACTIVATE DIALOG oDlg ON INIT Paint_data(oDlg)

RETURN NIL

Function Paint_data( oDlg )

   //Local cfoto := "dip.bmp"
   Local cfoto := "C:\FWH1610\BITMAPS\FIVETECH.bmp"
   Local oImg

   @ 13, 12 IMAGE oImg FILENAME cFoto OF oDlg SIZE 96,115  ;
            NOBORDER DESIGN

   oImg:lTransparent := .F.
   oImg:Refresh()

   oDlg:Refresh()
   oDlg:UpDate()

RETURN NIL


João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM

Re: error moving a bitmap or Image

Posted: Wed Dec 07, 2016 12:32 PM


Regards.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion