English
Source / code snippets

Bitmap colour Invertieren

 

'Source watts on the 15.07.2007 from the MMJ-Quellcodesammlung (Dietmar horn) into Babyklappe on XProfan.com stored:
'Bitmap: colour invertieren
'

Proc InvertRGBColor

    Parameters color&
    Declare i%

    While (i% < 24)' 24 bit wealthy - otherwise Error NT/2000

        Let color&=SetBit(color&,i%,hardship(TestBit(color&,i%)))
        Inc i%

    Wend

    Return color&

ENDPROC

'example
Declare color&
SetTrueColor 1
Cls
Window Title "RGB-colour invertieren"
Let color&=RGB(0,0,255)
UseBrush 1, color&
DrawText 10,0,"Vorher"
Rectangle 0,20 - 100,100
InvertRGBColor color&
Let color&=&(0)
UseBrush 1,&(0)
DrawText 110,0,"Nachher"
Rectangle 100,20 - 200,100
WaitInput
 
07/15/07  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.105 Views

Untitledvor 0 min.
Jörg Sellmeyer06/23/18
Georg Teles05/15/14
iF12/28/12
Julian Schmidt10/29/11

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


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