Search found 136 matches: palbmpdraw

Return to advanced search

Re: Gluing images

... := SelectObject( hDCMem, hBitmap ) local hBmp, hDib now you paint your bitmaps on hDCMem this way: hBmp = ReadBitmap( 0, "name.bmp" ) PalBmpDraw( hDCMem, nRow, nCol, hBmp ) Finally you save it and clean: DibWrite( cFileName, DibFromBitmap( hBitmap ) ) SelectObject( hDCMem, hPrev ) ...
by Antonio Linares
Tue Oct 12, 2021 5:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Gluing images
Replies: 8
Views: 679

Botones dentro de la ventana principal

... NOBORDER OF oWnd ; ON CLICK( oBmp:lStretch := ! oBmp:lStretch, oBmp:Refresh( .t. ) ) ACTIVATE WINDOW oWnd MAXIMIZED ; ON PAINT PalBmpDraw( hDC, 150, 250, oBmp:hBitmap ) Pero cuando se trata de poner botones, encima del logo por ejemplo, ¿cómo se haría? Gracias
by Ramón J.
Thu Sep 23, 2021 11:39 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Botones dentro de la ventana principal
Replies: 3
Views: 466

Re: Xbrowse : Setup configuration file

... // add the lines ::osettingbmp:=TBitmap():Define( "config",,::oWnd) ::osettingbmp:ltransparent:=.t. 3. METHOD Paint() CLASS TXBrowse ... PalBmpDraw( ::hDC, (::nHeaderHeight - 3-if(::lgetbar,::nrowheight*2,0))*0.2, RECORDSELECTOR_WIDTH*0.2,; ::osettingbmp:hBitmap,; ::osettingbmp:hPalette,; ...
by ShumingWang
Sat Apr 17, 2021 12:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse : Setup configuration file
Replies: 5
Views: 1217

Re: Opaque controls

... oGRid is a xbrowse allready open Local hBmp,hBlur oApp:oGrid:GetDC() hBmp := MakeBkBmp( oApp:oGrid:hWnd, oApp:oGrid:hDC ) hBlur := Blur( hBmp, 3 ) PalBmpDraw( oApp:oGrid:hDC, 0, 0, hBlur ) DEFINE DIALOG oDlg DEFINE DIALOG oDlg DeleteObject( hBmp ) DeleteObject( hBlur ) oApp:oGrid:ReleaseDC()
by Silvio.Falconi
Tue Apr 16, 2019 12:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Opaque controls
Replies: 5
Views: 713

Using a Jpg instead of a Bitmap for Opening screen Graphics

... .. Here is my current code .. Any suggestions to replace this code to use a ( much smaller ) .Jpg vs a Bitmap in a Mdi environment that uses the PalBmpDraw() function .. local oBmp,oBMAP,nScr1,nScr2nSCR1 := GetSysMetrics(0)nSCR2 := GetSysMetrics(1)DEFINE BITMAP oBMP  FILENAME ...
by Rick Lipkin
Sun Nov 18, 2018 6:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Using a Jpg instead of a Bitmap for Opening screen Graphics
Replies: 9
Views: 2642

Problem with upgrade to FWH 2018 - 02

... and now the logo has disappeared ACTIVATE WINDOW oWnd ; VALID MsgNoYes( "Do you want to Exit " + PA[04] + "?" ) ; ON PAINT ( PalBmpDraw( hDC, (oWnd:nHeight/2-oBmp:nHeight/2)-50,(oWnd:nWidth/2-oBmp:nWidth/2), oBmp:hBitmap, oBmp:hPalette ) ); ON INIT ShowLogo( @oBmp, oWnd ) ...
by cdmmaui
Sun Apr 15, 2018 4:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with upgrade to FWH 2018 - 02
Replies: 13
Views: 3061

Re: Ayuda DLL

Antonio buenos dias, gracias por la ayuda Agrego la VM.LIB (xharbour), y me manda estos errorres :( :( Proyecto: Kept5, Entorno: BorlandDLL: [1]:Harbour.Exe Source\Tseguro.prg /m /n /es2 /ki /iP:\32bits\xharbour\include;P:\32bits\FWH\INCLUDE /i /oObj\Tseguro.c xHarbour Compiler build 1.2.1 (SimpLex)...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 6333

Re: sintaxis de BitMap

... ) DEFINE BITMAP oBmp FILE cBmp DEFINE DIALOG oWnd TITLE cTitulo ; SIZE oBmp:nWidth(), oBmp:nHeight PIXEL ACTIVATE DIALOG oWnd CENTERED ; ON PAINT PalBmpDraw( hDC, 300, 300, oBmp:hBitmap ) * ON PAINT PalBmpDraw( hDC, 0, 0, oBmp:hBitmap ) oBmp:End() else MsgAlert( "..Archivo Inexistente !" ...
by jcdeleon
Tue May 16, 2017 11:02 pm
 
Forum: FiveWin para CA-Clipper
Topic: sintaxis de BitMap
Replies: 4
Views: 1872

Pngs not transparent

I insert on a folder a image oImagen = TImage():Define(,"scaf.bmp" ) ... oGrid:adialogs[1]:bPainted := {|hDC| (PalBmpDraw( hDC, 0, 0, oImagen:hBitmap,, oGrid:adialogs[1]:nWidth, oGrid:adialogs[1]:nHeight,, .T.) ) } and on this folder many btnbmp buttons with png file @ nrow,ncol ...
by Silvio.Falconi
Wed Mar 02, 2016 9:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Pngs not transparent
Replies: 12
Views: 2641

Re: strange error with png files

... I have a png where you can see a room as the picture I sent you and the reels must be on center ( see the e-mail) I use oWnd:bPainted := {|hDC| PalBmpDraw( hDC, 0, 0, oBackground:hBitmap,, oWnd:nWidth, oWnd:nHeight,, .T.) } then I must make a configuration for the touch monitor I found local ...
by Silvio.Falconi
Thu Jan 14, 2016 8:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: strange error with png files
Replies: 2
Views: 559

Re: Bad quality with GIF (and GDI+)

... .t. )], [lStretch/nResizeMode], [nAlpha/lAlpha],[lGray] ) paints the image using the appropriate painting function eg. ABPaint(), TransBmp(),PalBmpDraw() For the sample you sent me, I suggest using FWH methods like this: function magicbmp()   local oDlg, aBmp   local ...
by nageswaragunupudi
Wed Nov 04, 2015 10:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bad quality with GIF (and GDI+)
Replies: 84
Views: 9935

Bug in ResizeImg()

The result of ResizeImg() is slightly different in width and height if compared with ResizeBmp() and PalBmpDraw().

EMG
by Enrico Maria Giordano
Wed Oct 28, 2015 2:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in ResizeImg()
Replies: 25
Views: 2789

Re: Bug in TBtnBmp

... oBmpRect:nWidth, oBmpRect:nWidth )         endif      else         PalBmpDraw( ::hDC, oBmpRect:nTop, oBmpRect:nLeft, hBmp, hPal, oBmpRect:nWidth, oBmpRect:nHeight, ;              ...
by Antonio Linares
Sat May 24, 2014 11:11 pm
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in TBtnBmp [Solved]
Replies: 88
Views: 15673

Re: Drawing on a TImage and save (revamped) :-)

... hDC, nWidth, nHeight ) LOCAL hBmpOld := SELECTOBJECT( hMemDC, hMemBmp ) LOCAL hBitmap := oImg:hBitmap LOCAL hPalette := oImg:hPalette PALBMPDRAW( hMemDC, 0, 0, hBitmap, hPalette, nWidth, nHeight ) DO_LINES( hMemDC, hPen, nPensize, nPenColor ) SELECTOBJECT( hMemDC, hBmpOld ) DELETEDC( ...
by ukoenig
Sun Apr 06, 2014 12:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8379

imagen 1920 que se vea centrada siempre SOLUCIONADO

... Tengo una imagen de 1920x xxx y deseo centrarla siempre en cualquier odenador sin importar su resolucion de pantalla. Alguna sugerencia? Con PalBmpDraw( hDC, ,, oImage:hBitmap, , , , , .T. ) la coloco en la pantalla SOLUCION local nMaxAlto := GetSysMetrics(1) local nMaxAncho := GetSysMetrics(0) ...
by RDFernandez
Tue Feb 04, 2014 3:59 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: imagen 1920 que se vea centrada siempre SOLUCIONADO
Replies: 0
Views: 365
Next

Return to advanced search