DrawingBuffer() speichern und wieder auslesen
Verfasst: 29.05.2012 13:43
Speichern
Öffnen
Sollte das nicht gehn? Ich bekomm am End ein schwarzes halbtransparentes bild.
Code: Alles auswählen
StartDrawing(ImageOutput(\img))
DrawingMode(#PB_2DDrawing_AlphaBlend)
mem=AllocateMemory(OutputWidth()*OutputHeight()*4)
CopyMemory(DrawingBuffer(), mem, OutputWidth()*OutputHeight()*4)
AddPackMemory(mem, MemorySize(mem))
StopDrawing()Code: Alles auswählen
file=NextPackFile()
mem = AllocateMemory(PackFileSize())
CopyMemory(file, mem, PackFileSize())
StartDrawing(ImageOutput(layer()\element()\img))
FillMemory(DrawingBuffer(), PackFileSize(), mem)
StopDrawing()