Method: FT2::Bitmap#pitch

Defined in:
ext/ft2-ruby/ft2.c

#pitchObject

Return the pitch (bytes per row) of an FT2::Bitmap object.

Return the pitch (bytes per row, including alignment padding) of an FT2::Bitmap object.

Examples:

width = bitmap.width


162
163
164
165
166
# File 'ext/ft2-ruby/ft2.c', line 162

static VALUE ft_bitmap_pitch(VALUE self) {
  FT_Bitmap *bitmap;
  Data_Get_Struct(self, FT_Bitmap, bitmap);
  return INT2FIX(bitmap->pitch);
}