by MarioG » Thu Apr 07, 2011 10:17 am
Rodolfo;
se me escapo comentar que:
soWnd0 es la variable objeto de mi ventana
soSplit es la variable objeto de un splitter que incluye la ventana (no es relevante para tu caso)
PalBmpDraw( hDC, (soWnd0:nHeight-oImg:nHeight ) /3, soSplit:nFirst+( soSplit:nLast-oImg:nWidth) /2, oImg:hBitmap,, oImg:nWidth, oImg:nHeight,, TRUE )
Para tu caso,guiate por la ayuda de la funcion:
Syntax:
PalBmpDraw( <hDC>, <nRow>, <nCol>, <hBitmap>, <hPalette>, <nWidth>, <nHeight>, <nRaster>, <lTransparent>, <nClrPane> ) --> nil
Parameters:
<hDC> Identifies the window device context.
<nRow>, <nCol> The coordinates where to display the bitmap. Expressed in pixels unless there is an alternative SetMapMode() selected.
<hBitmap>, <hPalette> The bitmap handles. These handles are automatically generated by the FiveWin functions:
PalBmpRead( <hDC>, <cBmpFileName> ) --> <aPalBmp>
PalBmpLoad( <hDC>, <cBmpResName> ) --> <aPalBmp>
And destroyed calling:
PalBmpFree( <hBitmap>, <hPalette> )
These functions are automatically called from TBitmap Class.
<nWidth> The target dimensions for the dipplayed bitmap.
<nHeight> By tdefault the own bitmap dimensions are used.
Saludos
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina