Module: Cairo::Format

Defined in:
ext/cairo/rb_cairo_constants.c

Constant Summary collapse

INVALID =
INT2FIX (CAIRO_FORMAT_INVALID)
ARGB32 =
INT2FIX (CAIRO_FORMAT_ARGB32)
RGB24 =
INT2FIX (CAIRO_FORMAT_RGB24)
A8 =
INT2FIX (CAIRO_FORMAT_A8)
A1 =
INT2FIX (CAIRO_FORMAT_A1)
RGB16_565 =
INT2FIX (CAIRO_FORMAT_RGB16_565)
RGB30 =
INT2FIX (CAIRO_FORMAT_RGB30)
RGB96F =
INT2FIX (CAIRO_FORMAT_RGB96F)
RGBA128F =
INT2FIX (CAIRO_FORMAT_RGBA128F)

Class Method Summary collapse

Class Method Details

.stride_for_widthObject



285
286
287
288
289
290
# File 'ext/cairo/rb_cairo_constants.c', line 285

static VALUE
cr_format_stride_for_width (VALUE self, VALUE format, VALUE width)
{
  return INT2NUM (cairo_format_stride_for_width (RVAL2CRFORMAT (format),
                                                 NUM2INT (width)));
}