error moving a bitmap or Image

error moving a bitmap or Image

Postby Silvio.Falconi » Wed Dec 07, 2016 11:27 am

why if I change the size of Image or bmp fwh create black background ?
see it pls :

Image

the code
Code: Select all  Expand view
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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: error moving a bitmap or Image

Postby ukoenig » 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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: error moving a bitmap or Image

Postby karinha » Wed Dec 07, 2016 12:28 pm

Code: Select all  Expand view

#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
User avatar
karinha
 
Posts: 7814
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: error moving a bitmap or Image

Postby karinha » Wed Dec 07, 2016 12:32 pm

Image

Regards.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7814
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 114 guests