English
Source / code snippets

Bitmap Einfärben Static

 
Static by Bitmap dye to Rolf Koch
Proc Faerbestatic

    Declare Wfb#,H&,Image$
    Parameters Statbild&,Breitobj&,Hochobj&,Hwndfarb%
    Image$="DUMMY.BMP"
    Mcls Breitobj&,Hochobj&
    Startpaint -1
    Setpixel 0,0,Hwndfarb%
    Savebmp Image$,0,0-1,1;0
    Endpaint
    Dim Wfb#,(Len(Image$) + 1)
    String Wfb#,0=Image$
    Let H&=Loadimage(%Hinstance,Wfb#,0,Breitobj&,Hochobj&,$50)
    Sendmessage(Statbild&,$172,0,H&)
    Dispose Wfb#
    Assign #1,"DUMMY.BMP"
    Erase #1

Endproc

Def Loadimage(6) !"USER32","LoadImageA"
Declare Static1&,Static2&,Static3&
Cls
Static1&=@Control("STATIC","",$5400110E,10,10,50,50,%Hwnd,$7918,%Hinstance)
Static2&=@Control("STATIC","",$5400110E,65,10,50,50,%Hwnd,$7918,%Hinstance)
Static3&=@Control("STATIC","",$5400110E,120,10,50,50,%Hwnd,$7918,%Hinstance)
Faerbestatic Static1&,50,50,Rgb(255,128,192)
'Parameter: the Statichandle,wide the Statics, Höhe the Statics,a RGB-colour
Faerbestatic Static2&,50,50,Rgb(0,0,255)
'Parameter: the Statichandle,wide the Statics, Höhe the Statics,a RGB-colour
Faerbestatic Static3&,50,50,Rgb(0,255,64)
'Parameter: the Statichandle,wide the Statics, Höhe the Statics,a RGB-colour
Waitinput
 
10/05/05  
 



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.387 Views

Themeninformationen

this Topic has 1 subscriber:

iF (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