Package ch.bailu.gtk.cairo
Class Cairo
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Package
ch.bailu.gtk.cairo.Cairo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
formatStrideForWidth
(int format, int width) static ClassHandler
static Surface
imageSurfaceCreate
(int format, int width, int height) static Surface
imageSurfaceCreateForData
(Bytes data, int format, int width, int height, int stride) Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
-
Constructor Details
-
Cairo
public Cairo()
-
-
Method Details
-
getClassHandler
-
imageSurfaceCreate
- Parameters:
format
-width
-height
-- Returns:
-
imageSurfaceCreateForData
public static Surface imageSurfaceCreateForData(@Nonnull Bytes data, int format, int width, int height, int stride) - Parameters:
data
-format
-width
-height
-stride
-- Returns:
-
formatStrideForWidth
public static int formatStrideForWidth(int format, int width) - Parameters:
format
-width
-- Returns:
-