Jup, danke.
Mit meinem Programm unten kann ich mit der DIB-Dll meine Grafik unter XPIA beeinflussen.
Wie kann ich jetzt am schnellstem mit XPIA die Farbpunkte abfragen?
Da die Farbe nur 3-Byte hat und die Register bei ASM 4 Byte einlesen, weiss ich nicht wie das funktioniert.
Ich wollte jetzt aber nicht 3 einzelne Byte abfragen mit XPIA.
Vielleicht weiß FRABBING etwas, wie es machbar ist, oder muß die DIB-Dll auf 4-Byte (32Bit-Farben) umgestellt werden?
Danke.
Gruss
$MAKE CLE
declare dib&,dibptr&,groesse&,bild&
DEF CreateDIB(2) !"dib","CreateDIB"
DEF FreeDIB(1) !"dib","FreeDIB"
DEF DrawDIB(4) !"dib","DrawDIB"
DEF CloneDIB(1) !"dib","CloneDIB"
dib&=usedll("dib.dll")
dibptr&=CreateDIB(700,700)
groesse&=Long(dibptr&,20)-21
bild&= Long(dibptr&,40)
Window 20,20-750,770
Cls RGB(255,255,255)
If 0
AsmStart _dib(bild&,groesse1&)
mov ecx,0
mov eax,para1
.While ecx<para2
mov [eax],00FF00h
Add eax,3
Add ecx,3
.Endw
AsmEnd
EndIf
Call(GetXpiaProcAddress(XpiaModule&,"_dib"),bild&,groesse&)
DrawDIB(%hdc,10,10,dibptr&)
WaitKey
FreeDIB(dibptr&)
End
Alles anzeigen