Search found 45 matches: nbmpheight

Return to advanced search

Re: Poner BMP en Ventana principal

... FUNCTION ABmpTiled( hDC, oWnd, oBmp ) local nWidth := oWnd:nWidth(), nHeight := oWnd:nHeight() local nBmpWidth := oBmp:nWidth(), nBmpHeight := oBmp:nHeight() local nCol := (nWidth-nBmpWidth)-20, nRow := (nHeight-nBmpHeight)-90 IF oBmp:hBitMap == 0 RETURN nil ENDIF PalBmpDraw( ...
by JavierVital
Wed Feb 01, 2012 4:39 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Poner BMP en Ventana principal (RESUELTO)
Replies: 9
Views: 2161

Re: HELP FOR TEXPLORERBAR CLASS

... above Panel-top and minus 1/3 of BMP-width from left. ... ::aPanels[ n ]:nLeft - ( nBmpWidth( hBmpPanel ) / 3 ),; ::aPanels[ n ]:nTop - ( nBmpHeight( hBmpPanel ) / 3 ),; ... ... to change this like using + 100, will move the BMP 100 Pixel from left to right as well You have to change the ...
by ukoenig
Sun Nov 21, 2010 8:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HELP FOR TEXPLORERBAR CLASS
Replies: 14
Views: 3278

Re: Listbox no FWH 6.2

... hDC, oWnd, oBmp ) local nWidth := oWnd:nWidth(), nHeight := oWnd:nHeight() local nRow := 0, nCol := 0, n local nBmpWidth := oBmp:nWidth(), nBmpHeight := oBmp:nHeight() if oBmp:hBitmap == 0 return nil endif while nRow < nHeight nCol = 0 while nCol < nWidth PalBmpDraw( hDC, nRow, nCol, ...
by j.fmagalhaes
Thu Nov 11, 2010 10:11 pm
 
Forum: All products support
Topic: Listbox no FWH 6.2
Replies: 5
Views: 2715

Re: Help for ExplorerBar to Daniel or Antonio

... ) .and. !::lCollapsed ::hWaterImage := ::LoadImage( ::cWaterImage ) if ::hWaterImage != 0 nWidth = nBmpWidth( ::hWaterImage ) nHeight = nBmpHeight( ::hWaterImage ) nTop := ::nHeight - nHeight-1 nLeft := ::nWidth - nWidth-10 nBottom := nTop + nHeight nRight := nLeft + nWidth nAlphaLevel ...
by MdaSolution
Fri Jul 02, 2010 10:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help for ExplorerBar to Daniel or Antonio
Replies: 18
Views: 4301

Re: Timage

... la imagen y no como lo haces actualmente, que es cambiar el tamaño de la imagen al tamaño del control oImage:SetSize( nBmpWidth( oImage:hBitmap ), nBmpHeight( oImage:hBitmap ), .T. ) si no trabaja como esperas, alguna solucion te ayudaremos encontrar
by Daniel Garcia-Gil
Fri Apr 09, 2010 2:55 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Timage
Replies: 11
Views: 3692

Re: Se necesita ayuda en el wiki !

... MsgLogo() MsgMeter() MsgNoYes() MsgPaint() MsgRetryCancel() MsgRun() MsgSound() MsgStop() MsgToolBar() MsgWait() MsgYesNo() nAnd() nArgC() nBmpHeight() nBmpWidth() nColorToN() nDbl2Flt() nDDEGetErrorString() NDdeShareSetInfo() nDlgBox() NextDlgTabItem() nExtMem() nFileCrc() nGetBackRgb() ...
by Cgallegoa
Sun Feb 21, 2010 10:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se necesita ayuda en el wiki !
Replies: 12
Views: 5528

Re: Browser for FW sample folder

... I check for the size and only adjust it necessary? The functions to get the sizes of bitmaps are: nBmpWidth( oBmp:hBitmap ) // bitmap's width nBmpHeight( oBmp:hBitmap ) // bitmap's height I was trying with a function that may do the job (not fully tested) Function AdjustBmp( oBmp )  ...
by mmercado
Mon Nov 02, 2009 5:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Browser for FW sample folder
Replies: 15
Views: 3803

Re: Main Window background

Hello Tim, have a look at the Alpa-Function above : DEFINE BITMAP oBmp1 FILENAME "Logo.bmp" nBMPWidth := oBmp1:nWidth nBMPHeight := oBmp1:nHeight // Centered Logo // ---------------- ABPaint( hDC, ( oWnd:nWidth() / 2 ) - ( nBMPWidth / 2 ), ; ( oWnd:nHeight() / 2 ) - (nBMPHeight ...
by ukoenig
Mon Oct 12, 2009 9:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Main Window background
Replies: 13
Views: 3389

Re: Poner imagen en MDI

... oBmp, oWnd ) //BmpTiled( local nWidth := oWnd:nWidth(), nHeight := oWnd:nHeight() local nRow := 0, nCol := 0, n local nBmpWidth := oBmp:nWidth(), nBmpHeight := oBmp:nHeight() if oBmp:hBitmap == 0 return nil endif while nRow < nHeight nCol = 0 while nCol < nWidth PalBmpDraw( hDC, nRow, nCol, ...
by jaba
Mon Nov 24, 2008 9:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Poner imagen en MDI
Replies: 5
Views: 1047

Re: Poner imagen en MDI

... oBmp, oWnd ) //BmpTiled( local nWidth := oWnd:nWidth(), nHeight := oWnd:nHeight() local nRow := 0, nCol := 0, n local nBmpWidth := oBmp:nWidth(), nBmpHeight := oBmp:nHeight() if oBmp:hBitmap == 0 return nil endif while nRow < nHeight nCol = 0 while nCol < nWidth PalBmpDraw( hDC, nRow, nCol, ...
by FranciscoA
Mon Nov 24, 2008 8:07 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Poner imagen en MDI
Replies: 5
Views: 1047

... CreateCompatibleDC( ::hDC ) hOldBmp = SelectObject( hDCMem, hBmp ) StretchBlt( ::hDC, 0, 0, ::nWidth, ::nHeight, hDCMem, 0, 0, nBmpWidth( hBmp ), nBmpHeight( hBmp ), SRCCOPY ) SelectObject( hDCMem, hOldBmp ) DeleteDC( hDCMem ) */ ::Say( ::nHeight / 4 - 2,; If( ::lCentered, ( ::nWidth / 2 ) - ( ...
by FranciscoA
Wed Oct 15, 2008 12:09 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: No encuentro las mejoras hechas a xbrowse por franciscoA ??
Replies: 17
Views: 4511

dbarrio,

hBmp:=ReadBitmap(0, "C:\bitmap.bmp")
nHig=nBmpHeight(hBmp)
nWid=nBmpWidth(hBmp)
oWord:AddImagen( 1, 1, 1+nCol, 1+nHig, nWid, "C:\bitmap.bmp", {1,1,1,1,1,1})

Saludos, Euclides
by Euclides
Wed Aug 27, 2008 1:55 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Imagen con tword
Replies: 6
Views: 1031

Fivewin Classes

... Simply replace hBmpPal for hBitmap and it will be ok. Also notice that pBmpHeight() and pBmpWidth() no longer exist, and must replaced by nBmpHeight( hBitmap ) and nBmpWidth( hBitmap ) calls. -------------------------------------------------------------------------------- Everyone, At ...
by Antonio Linares
Wed Aug 27, 2008 7:44 am
 
Forum: Utilities / Utilidades
Topic: Boris Pekic - NG's archive
Replies: 27
Views: 93198

Re: Bitmap sizes

Euclides wrote:Hi to all!
It there a way to get the bitmap sizes (width & height) read by ReadBitmap() function ?
TIA & Regards, Euclides


nBmpWidth( hBmp )
nBmpHeight( hBmp )

Source: \fwh\source\function\fwbmp.c
by nageswaragunupudi
Wed Aug 13, 2008 3:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bitmap sizes
Replies: 3
Views: 739
PreviousNext

Return to advanced search