English
Forum

Done: API to replace of colours

 

Jac
de
Lad
Kenn someone ne API, with the I on one hPic a colour ratzfatz against another replace can?

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
07/17/08  
 



is I do not famous, but by bitblt-Operationen (and or xor) can blitzschnell whole Farbbereiche modify.

Workaround could one small inlineasm his which in the membmp pixelt.

Oooder You verwendest skillful whom -1 mode of z.B. drawPic or copyBmp there one here Yes The "Transparentfarbe" dial can and z.B. on a others primitive colour raufkopieren can.

[offtopic]
create("hNewPic",xx,yy,colour)
[/offtopic]
 
07/17/08  
 



alike, here time one Testcode  [...]  where itself me The question Screen memory aufdrängt and so here the inline-ASM-appeal so forever lasts or. Why here the inlineasm "langsamer" is as the XProfan-code. (something overlooking?)

1.033 kB
Hochgeladen:07/17/08
Downloadcounter105
Download
 
07/17/08  
 



so GEHTS:  [...]  (now hats me too interested...)

1.021 kB
Hochgeladen:07/17/08
Downloadcounter89
Download
 
07/17/08  
 




Jörg
Sellmeyer
can You not in the Transparentmodus on a properly gefäbten background copy:
DrawPic hBitmap&, X%, Y%; mode%[, transcol&]
This is naturally first ex Profan11!
but too with older versions can it with a small detour achieve:
-Pixel left under in the To ersetzenden colour dye
-Image to desired Farbuntergrund copy
-Pixel again in the Ursprungsfarbe dye
-zurückkopieren

David hats Yes supra already erwähnt, but so ne Step-byStep-guide can indeed not damage.
edit: (ok, he was even code faster)
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
07/17/08  
 




Frank
Abbing
iF
alike, here time one Testcode  [...]  where itself me The question Screen memory aufdrängt and so here the inline-ASM-appeal so forever lasts or. Why here the inlineasm "langsamer" is as the XProfan-code. (something overlooking?)


You call The Assemblerroutine for each row new on. These many Dll-Aufrufe last even.
If you the image in a Rusch copy is it naturally faster as XProfan. foreseen of it, that The API GetPixel very gammy is. best, You verwendest a DIB.
 
07/17/08  
 



Hiernach is the appeal of/ one Inline-ASM-function More as 100 time slower as the appeal of/ one XProfanfunktion.

I must me times the ENH standing, Perhaps can itself the improve?
 
07/17/08  
 




Frank
Abbing
iF
Hiernach is the appeal of/ one Inline-ASM-function More as 100 time slower as the appeal of/ one XProfanfunktion.

I must me times the ENH standing, Perhaps can itself the improve?


The Assemblercode is sure optimierbar.
 
07/17/08  
 




Jac
de
Lad
Erstmal thanks.

I have ien Image to one Static laid and wished yet The transparenten reaches on The Backgroundcolor adjust, for need I the. therefore divorced the DrawPic too from. the whole with the Static is nötic because of the automatischen Repaint (the Static lying NOT on the hWnd and Subclassing and manuellem Repaint I had not so whom desired success, particularly with the Perförmanze).
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
07/17/08  
 



sendMessage(hBmp,stm_setImage,,hPic)
 
07/17/08  
 




Jac
de
Lad
this is too clear, but the help me with the Transparenzkernproblem not further. but your method with the hNewPic has me helped.
Eingefügt of iF : here GEHTS moreover:  [...] 
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
07/17/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.387 Views

Untitledvor 0 min.
Jörg Sellmeyer06/24/20
RudiB.04/01/20
Michael W.07/03/16
Torben Nissen03/03/12
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie