calculateRowstride
fun calculateRowstride(colorspace: Colorspace, hasAlpha: Boolean, bitsPerSample: <Error class: unknown class>, width: <Error class: unknown class>, height: <Error class: unknown class>): <Error class: unknown class>
Calculates the rowstride that an image created with those values would have.
This function is useful for front-ends and backends that want to check image values without needing to create a GdkPixbuf
.
Return
the rowstride for the given values, or -1 in case of error.
Since
2.36.8
Parameters
colorspace
Color space for image
hasAlpha
Whether the image should have transparency information
bitsPerSample
Number of bits per color sample
width
Width of image in pixels, must be 0
height
Height of image in pixels, must be 0