| |
|
|
 | Jemand eine Idee wie Io l' Bitmapspeicherbereich nachträglich ändern kann - denn hierbei wird ja der Speicher lediglich vorbereitet. KompilierenMarkierenSeparierendeclare 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
Ich bin wohl betriebsblind.
Salve, iF. |
|
|
| |
|
|
|
 Jörg Sellmeyer | Vielleicht so: KompilierenMarkierenSeparieren
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>
Ich hab aber keine Ahnung wie sich das auf den Speicher auswirkt. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 12.08.2005 ▲ |
|
|
|
|
 | Ne du erstellst ja immer neue BMPs - genau das ist ja ebend nicht Sinn der Sache.  |
|
|
| |
|
|
|
 Frank Abbing | Hi iF.
Hatten wir ja schonmal, oder? Du musst dazu die DIB-Funktionen nutzen. Sieh mal nach unter DrawDibDraw() und den damit verwandten APIs.
Kann es sein, dass du einen AA-Effekt bauen willst? Ich bin mit deiner Idee ziemlich gescheitert und probiere es gerade anders. Wird aber immer besser... |
|
|
| |
|
|
|
 Jörg Sellmeyer | |
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 13.08.2005 ▲ |
|
|
|
|
 Frank Abbing | Hi.
AA = AntiAliasing  |
|
|
| |
|
|