Antonio Linares wrote:Willy,
Please email me those bitmaps, thanks.
Sended
By
#include "FiveWin.ch"
Function Test()
Local oDlg, oBmpColor , oBmpBlackWhite
Local cTitle := "Testing"
DEFINE DIALOG oDlg FROM 0,0 TO 320, 280 TITLE cTitle Pixel // 500 Width
@ 0, 0 Bitmap oBmpBlackWhite Filename "01-01.Bmp" Of oDlg Pixel // 100 High
@ 0, 110 Bitmap oBmpColor Filename "01-00.Bmp" Of oDlg Pixel // 100 High
oBmpBlackWhite:bLClicked := {|nRow,nCol|GetZone(nRow,nCol,oBmpColor,oDlg)}
ACTIVATE DIALOG oDlg CENTERED On Init oBmpColor:Hide()
Return Nil
**************************************************************
Static Function GetZone(nRow,nCol,oBmpColor,oDlg)
local hDC := CreateCompatibleDC( oDlg:GetDC() )
local hOldObj := SelectObject( hDC, oBmpColor:hBitmap )
Local nColor := GetPixel( hDC, nCol,nRow )
SelectObject( hDC, hOldObj )
oDlg:ReleaseDC()
DeleteDC( hDC )
? "Kleur : " + AllTrim(Str(nColor)) , "Col : " + AllTrim(Str(nCol)) , "Row : " + AllTrim(Str(nRow))
Return Nil
Antonio Linares wrote:Willy,
oBmp1:bPainted = { | hDC | TransBmp( oBmpX:hBitmap, oBmp1:nWidth(), oBmp1:nHeight(), nClrTransparent, hDC, 0, 0, oBmp1:nWidth(), oBmp1:nHeight() }
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot], Silvio.Falconi and 62 guests