Images and Figures (rinoh.image)¶
- class rinoh.image.Image(filename_or_file, scale=1.0, width=None, height=None, dpi=None, rotate=0, limit_width=<rinoh.dimension.Fraction object>, align=None, alt=None, id=None, style=None, parent=None, source=None)¶
-
class rinoh.image.InlineImage(filename_or_file, scale=
1.0, width=None, height=None, dpi=None, rotate=0, alt=None, baseline=None, id=None, style=None, parent=None, source=None)¶ - arguments¶
alias of
InlineImageArgs
- class rinoh.image.BackgroundImage(filename_or_file, scale=1.0, width=None, height=None, dpi=None, rotate=0, limit_width=<rinoh.dimension.Fraction object>, align=None, alt=None, id=None, style=None, parent=None, source=None)¶
Image to place in the background of a page
Takes the same arguments as
Image.
-
class rinoh.image.ImageArgs(base=
None, **attributes)¶ - limit_width¶
Limit the image width when none of
scale,widthandheightare given and the image would be wider than the containerAccepts
Dimension: a numeric value followed by a unit (pt,in,pc,mm,cm,%,/2,/4)Default:
100%
- align¶
How to align the image within the page
Accepts
HorizontalAlignment:left,right,centerDefault:
left
- file_or_filename¶
Path to the image file (inherited from
ImageArgsBase)Accepts
ImagePath: path to an image file enclosed in quotesDefault:
none
- scale¶
Scaling factor for the image (inherited from
ImageArgsBase)Accepts
Scale:fit,fillor a float larger than 0Default:
fit
- width¶
The width to scale the image to (inherited from
ImageArgsBase)Accepts
Dimension: a numeric value followed by a unit (pt,in,pc,mm,cm,%,/2,/4)Default:
none
- height¶
The height to scale the image to (inherited from
ImageArgsBase)Accepts
Dimension: a numeric value followed by a unit (pt,in,pc,mm,cm,%,/2,/4)Default:
none
- class rinoh.image.Scale¶
Scaling factor for images
Can be a numerical value where a value of 1 keeps the image’s original size or one of
values.Accepts:
fit,fillor a float larger than 0
-
class rinoh.image.Caption(content, custom_label=
None, align=None, width=None, id=None, style=None, parent=None, source=None)¶ - style_class¶
alias of
CaptionStyle
-
class rinoh.image.Figure(flowables, align=
None, width=None, id=None, style=None, parent=None, source=None)¶ - style_class¶
alias of
FigureStyle
- class rinoh.image.ListOfFiguresSection¶
- list_class¶
alias of
ListOfFigures