Search found 12 matches: holdbmp

Return to advanced search

A slider solution to adjust the color brightness ?

... nCol, oBmp ) LOCAL hDC := CreateCompatibleDC( oBmp:GetDC() ) LOCAL hBmp := ReadBitmap( 0, "Picker.bmp" ) // the basic gradient bmp LOCAL hOldBmp := SelectObject( hDC, hBmp ) LOCAL nRGBColor := GetPixel( hDC, nCol, nRow ) SelectObject( hDC, hOldBmp ) DeleteObject( hBmp ) DeleteDC( hDC ...
by ukoenig
Thu Jun 03, 2021 7:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A slider solution to adjust the color brightness ?
Replies: 2
Views: 475

Re: Device context to file

... siz:=GetWndRect(hDeskTop) hDC := CreateCompatibleDC( hDeskTop ) hBmp := CreateCompatibleBitMap( hDC, siz[4]-siz[2], siz[3]-siz[1]) hOldBmp:=SelectObject(hDc, hBmp) BitBlt(hDc, 0, 0, siz[4]-siz[2], siz[3]-siz[1], hDeskTop, 0, 0, 13369376) //SCRCOPY oImg:=GdiBmp():New() oImg:hBmp:=Gdip_FromHBitmap(hBmp,, ...
by Natter
Tue Apr 05, 2016 1:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Device context to file
Replies: 4
Views: 848

Re: Leer pixeles de un bitmap monocromo

... había buscado por donde había que cortar seleccionando un hDC y antes de llamar a tu función tenía que restaurarlo poniendo SelectObject( hDCMem, hOldBmp ). Pero bueno, que tu función corta perfectamente un bitmap. Muchas gracias, Joaquín Martínez
by jmartial
Fri Jul 24, 2015 12:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Leer pixeles de un bitmap monocromo
Replies: 30
Views: 4140

Re: RPreview mal en xp

... "hDC: " + alltrim( str( hDC ) ) ) OutputDebugString( "hBmp: " + alltrim( str( hBmp ) ) ) OutputDebugString( "hOldBmp: " + alltrim( str( hOldBmp ) ) ) OutputDebugString( "oRect:nWidth: " + alltrim( str( oRect:nWidth ) ) ) //NEW OutputDebugString( ...
by carlos vargas
Fri Oct 11, 2013 6:14 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: RPreview mal en xp - SOLUCIONADO (a medias)
Replies: 52
Views: 11436

Re: RPreview mal en xp

Carlos,

GetDesktopWindows: 65556
hEMF: -1404692056
hDC1: 50409525
hDC: 318840043
hBmp: 0
hOldBmp: 0
Pasó 1
hBmp No Valido
Pasó 2
hDib No Valido

Rolando :D
by rolando
Fri Oct 11, 2013 6:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: RPreview mal en xp - SOLUCIONADO (a medias)
Replies: 52
Views: 11436

Re: Code Bar PDF417 ó QR Code

... estes creando, sino te comeras la memoria bastabte rapido 1) Deselecciona y elimina el handle del bitmap que estas creando hBmp SelectObject( hDC, hOldBmp ) DeleteObject( hBmp ) 2) eliminar el hDC que ya no usas con DeleteDC( hDC ) ahora prueba esta secuencia DrawBitmap( hDC, oCode:hCodeBar, ...
by Daniel Garcia-Gil
Tue Aug 23, 2011 11:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Code Bar PDF417 ó QR Code
Replies: 50
Views: 13276

Re: RIBBON NATIVA AVANCES

... the ribbon METHOD PaintQuickAccess() CLASS TRibbonBar local nTop, nBottom local aRect := GetClientRect( ::hWnd ) local hDCMem, hBmpMem, hBmpBrush, hOldBmpBrush local hOldBmp local hBrush, hBrush2 local n, nType local aInfo aInfo := ::DispBegin() default nType := 4 hDCMem = CreateCompatibleDC( ::hDC ...
by Silvio
Fri Nov 20, 2009 8:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: RIBBON NATIVA AVANCES
Replies: 34
Views: 7223

Re: How to resize a bitmap ?

bmpResized := ResizeBmp( hOldBmp, nNewWidth, nNewHeight ) Maybe a possible solution, to use StretchBlt() for the new Brush-functions in FWH-9.06, to get the Image-Brush adjusted to the Dialog ??? The ResizeBmp function internally uses ...
by nageswaragunupudi
Tue Jul 14, 2009 1:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to resize a bitmap ?
Replies: 8
Views: 1752

tImage: Image desde campo de DB

... siguiente: //----------------------------------------------------------------------------// METHOD LoadFromMemory(cBuffer) //CEL 08-Nov-2008 local hOldBmp := ::hBitmap local hOldPal := ::hPalette if ! Empty( hOldBmp ) PalBmpFree( hOldBmp, hOldPal ) endif ::hBitmap:=FILoadFromMemory(cBuffer) PalBmpNew( ...
by César E. Lozada
Thu Mar 12, 2009 4:18 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: tImage: Image desde campo de DB
Replies: 5
Views: 1480

... METHOD Paint() CLASS TMsgBar local aInfo := ::DispBegin() local aColors :=ClrMsgBar() /* local hDCMem, hOldBmp static hBmp if hBmp == nil .and. ::l2007 hBmp = MsgBar2007( ::hDC ) endif */ if ::l2007 * Gradient( ::hDC, { 0, 0, ::nHeight / 4, ::nWidth },; ...
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: 4410

METHOD Analiza(oImage) LOCAL hBmp := oImage:hWnd LOCAL hDc := GetDc(hBmp) local hDCMem := CreateCompatibleDC( hDC ) local hOldBmp:= SelectObject( hDCMem, hBmp ) local nX9 := oImage:nWidth local nY9 := oImage:nHeight local x, y, p Un hWnd no es un manejador de una imagen. Es un manejador ...
by Paco Garcia
Fri Feb 24, 2006 1:16 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cómo analizar el contenido de un bitmap
Replies: 6
Views: 1396

Hola

Código:

METHOD Analiza(oImage)
LOCAL hBmp := oImage:hWnd
LOCAL hDc := GetDc(hBmp)
local hDCMem := CreateCompatibleDC( hDC )
local hOldBmp:= SelectObject( hDCMem, hBmp ) << oImage:hBmp
local nX9 := oImage:nWidth
by Paco Garcia
Fri Feb 24, 2006 9:51 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cómo analizar el contenido de un bitmap
Replies: 6
Views: 1396

Return to advanced search