Method Cairo.Surface()->create_similar_image()
- Method
create_similar_image
Surface
create_similar_image(int
format
,int
width
,int
height
)- Description
Create a new image surface that is as compatible as possible for uploading to and the use in conjunction with this surface. However, this surface can still be used like any normal image surface. Unlike create_similar() the new image surface won't inherit the device scale from this.
Initially the surface contents are all 0 (transparent if contents have transparency, black otherwise.)
Use create_similar() if you don't need an image surface.
- Parameter
format
the format for the new surface
- Parameter
width
width of the new surface, (in pixels)
- Parameter
height
height of the new surface (in pixels)
- Returns
a newly allocated image surface.