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