>FW_DrawImage( hDC, "c:\fwh\bitmaps\alphabmp\ichat.bmp", {::nHeight-30, ::nWidth-25, ::nHeight - 10, ::nWidth-5}, .t. ) for me it's no good perhaps... data hBmpPop on METHOD Paint() CLASS TBtnBmp if ::oPopup != nil if ::hBmpPop != ...
... with MENU which IHMO do not hamdle Transparency please tell me a IMAGE from c:\fwh\bitmaps\16x16\ c:\fwh\bitmaps\32x32\ c:\fwh\bitmaps\AlphaBmp\ c:\fwh\bitmaps\backgrnd\ c:\fwh\bitmaps\hires\ c:\fwh\bitmaps\metro\ c:\fwh\bitmaps\pngs\ c:\fwh\icons\hires\ which will work, thx p.s. which ...
There is a function ABPaint( hDC := GetWindowDC( hWnd ), nLeft, nTop, oBmp:hBitmap ) sample testab.prg DEFINE BITMAP oBmp FILENAME "..\bitmaps\AlphaBmp\Trash.bmp" ... ... ACTIVATE WINDOW oWnd ; ON PAINT ABPaint( hDC, 10, 10, oBmp:hBitmap, 220 ) // 0-255 transparency level or You can use ...
... to paint your overlay and then use 2) FW_SaveImage( hBmp, cImageFile ) to save the image as bmp,jpg or png In this sample, we overlay \fwh\bitmaps\alphabmp\calendar.bmp over \fwh\bitmaps\olga1.jpg and then save the result as overlay.png. function ImageOverlay() local aImage1, aImage2, ...
... MEMOREAD( <imagefile> ) }, .t. ) To RC rc file If the logo is non-alpha bmp LOGO BITMAP "filename" if the logo is alphabmp or any other type like jpg, etc LOGO 10 "filename"
... I only changed the image from @ 1, 1 BITMAP oBmp FILENAME "..\bitmaps\fw.bmp" OF oWnd to @ 1, 1 BITMAP oBmp FILENAME "..\bitmaps\alphabmp\trash.bmp" OF oWnd oBmp:lTransparent := .T. 1. compiled with 18.1 2. compiled with 17.12 http://www.pflegeplus.com/IMAGES/Update3.jpg ...
Rick, I add these resources with a code editor ( text ) https://s15.postimg.org/di6m98faj/resedit1.png #define ALPHABMP 10 olga1 ALPHABMP "../bitmaps/olga1.jpg" files ALPHABMP "../bitmaps/alphabmp/files.bmp" To enjoy family and cookout
... is 24 bit .. Borland will not compile 32 bit image ? Rick Lipkin Rick, if you define you image of 32 bits: files BITMAP "../bitmaps/alphabmp/files.bmp" Borland fails to compile the resource, but, if you define your image 32 bits so: files 10 "../bitmaps/alphabmp/files.bmp" ...
... download them with just one line like : ShellExecute( oDlg1, ,"http://www.pflegeplus.com/DOWNLOADS/Trtext1zip", , , 5 ) // download of alphabmp-sample regards Uwe :D
... ) ) ) { newImage = new Bitmap( nWidth, nHeight, ( pf == PixelFormat32bppRGB ? PixelFormat32bppPARGB : pf ) ); if ( pf == PixelFormat32bppRGB ) // AlphaBmp: Need to do additional work .... by now there have been no trouble for it. another solution is to put a exception for gif.
... oImage:Refresh() endifReturn nil Gracias por su tiempo y ayuda. Saludos, Adhemar ¿ La imagen es un alphabmp ? . ¿ Sabes que tipo de imagen es ? png ?
... reduces the need to maintain bmp files of different sizes of the same image. A small example showing a buttonbar built with ICO,EXE,GIF,PNG,AlphaBmp and JPG. http://imagizer.imageshack.us/v2/xq90/673/k4zcPH.jpg function AnyImageBtn() local oWnd, oBar, oFont DEFINE ...