English
Forum

Bitmapspeicherbereich as an afterthought alter

 
someone a idea How I the Bitmapspeicherbereich as an afterthought Change can - because hierbei becomes Yes the memory solely prepared.
CompileMarkSeparation
declare h&,i&
cls
declare b#
dim b#,80*80*4
clear b#

whileloop 500

    px rnd(80),rnd(80),255,255,255

wend

h&=external("gdi32","CreateBitmap",80,80,1,32,b#)
print h&
print external("gdi32","SelectObject",%hdc,h&)
print h&

while 1

    DrawPic H&, %mousex-30,%mousey-30; 0
    px rnd(80),rnd(80),255,255,255

wend

waitkey
deleteobject h&
end

proc px

    parameters x&,y&,r%,g%,b%
    declare p&
    p&=y&*320+x&*4
    byte b#,p&=b%
    byte b#,p&+1=g%
    byte b#,p&+2=r%

endproc

i'm well betriebsblind.

salvo, iF.
 
08/12/05  
 




Jörg
Sellmeyer
Perhaps so:
CompileMarkSeparation
While 1

    sleep 1
    Case %mousepressed=1:H&=External("gdi32","CreateBitmap",Rnd(80),Rnd(80),1,32,B#)
    Case %mousepressed=2:Break
    Drawpic H&, %Mousex-30,%Mousey-30; 0
    Px Rnd(80),Rnd(80),Rnd(255),Rnd(255),Rnd(255)

/a>


I Have but no idea How itself the on the memory auswirkt.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/12/05  
 



Ne You erstellst Yes always new BMPs - very this is Yes ebend not sense the thing.
 
08/12/05  
 




Frank
Abbing
Hi iF.

had we Yes Schonmal, or?
You must moreover The DIB-functions benefit. look time to under DrawDibDraw() and the so in-laws APIs.

can it his, that You a AA-effect building want? i'm with your idea quite failed and try it straight differently. becomes but always rather...
 
08/13/05  
 




Jörg
Sellmeyer
What is one AA-effect?
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/13/05  
 




Frank
Abbing
Hi.

AA = AntiAliasing
 
08/13/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.012 Views

Untitledvor 0 min.
Georg Teles05/15/14
Ralf Netz09/23/12
Jörg Sellmeyer11/15/11

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