Method Image.XPM._xpm_write_rows()
- Method
_xpm_write_rows
int(0)_xpm_write_rows(Image.Imageimg,Image.Imagealpha,intbpc,array(string)colors,array(string)pixels)- Description
Fills in
imgandalphaaccording to xpm data inbpc,colorsandpixels.- Parameter
bpc Bytes per color. Number of bytes used to encode each color in
pixels.- Parameter
colors Array of color definitions.
A color definition is on the format "ee c #RRGGBB", where ee is a
bpclong string used to encode the color, c is a literal "c", and RRGGBB is a hexadecimal RGB code.- Parameter
pixels Raw picture information.
Array string0Size information on the format (
sprintf("%d %d %d %d", h, w, ncolors, bpn)).string1..ncolorsSame as
colors.stringncolors_plus_one..ncolors_plus_hLine information. Strings of length
bpn*w with encoded pixels for each line.