Save an image into a buffer

M

Misu

Guest
Im new to buffers and was wondering how images are saved into buffers. Im pretty sure it is possible but I dont find any info on such.
 

CMAllen

Member
buffer_get_surface will write the RGBA information of a surface to the designated buffer for you. Draw what you want to said buffer and there you go.
 
H

Hieran_Del8

Guest
If you want a sprite texture, I learned recently you can first draw a sprite to a surface, which enables you to get sprite data following CMAllen's suggestion.
 
Top