![]() ![]() height ( float) – desired target height._init_ ( self, source, width, height )Ĭopy and scale: Copy source pixmap choosing new width and height values. If the source has no alpha, this parameter has no effect. alpha ( bool) – whether to also copy the source’s alpha channel.In this case, a “masking” pixmap is created: its Pixmap.samples will consist of the source’s alpha bytes only. colorspace ( Colorspace) – desired target colorspace._init_ ( self, colorspace, source )Ĭopy and set colorspace: Copy source pixmap choosing the colorspace. alpha ( bool) – Specifies whether transparency bytes should be included.irect ( IRect) – Tte pixmap’s area and location.colorspace ( Colorspace) – colorspace of the pixmap.Note that the image area is not initialized and will contain crap data. So, for a fitz.IRect(x0, y0, x1, y1), fitz.Point(x0, y0) designates the top left corner of the pixmap. Method / AttributeĬlass API class Pixmap _init_ ( self, colorspace, irect, alpha )Įmpty pixmap: Create an empty pixmap of size and origin given by a rectangle. Have a look at the example section to see some pixmap usage “at work”. A number of image formats is supported as input for points 3. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |