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)

Class Method Summary collapse

Class Method Details

.stride_for_widthObject



263
264
265
266
267
268
# File 'ext/cairo/rb_cairo_constants.c', line 263

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