eelbrain.fmtxt.Image
- class eelbrain.fmtxt.Image(name=None, format='png', alt=None, buf=b'', height=None, width=None)
Represent an image file
Methods
|
Disable all I/O operations. |
|
Copy PDF to clipboard |
|
Copy TeX to clipboard |
|
Disconnect this buffer from its underlying raw stream and return it. |
|
Returns underlying file descriptor if one exists. |
|
Does nothing. |
|
Create an Image object from an array. |
|
Create an Image object from an existing image file. |
|
Complete HTML representation |
|
|
|
String representation |
|
TeX representation |
Get a read-write view over the contents of the BytesIO object. |
|
|
Retrieve the entire contents of the BytesIO object. |
|
Always returns False. |
|
Read at most size bytes, returned as a bytes object. |
|
Read at most size bytes, returned as a bytes object. |
|
Returns True if the IO object can be read. |
|
Read bytes into buffer. |
|
|
|
Next line from the file, as a bytes object. |
|
List of bytes objects, each a line from the file. |
|
Save in HTML format |
|
|
|
Save in PDF format |
|
Save in Rich Text format |
|
Save in TeX format |
|
Save as plain text file |
|
Change stream position. |
|
Returns True if the IO object can be seeked. |
|
Current file position, an integer. |
|
Truncate the file to at most size bytes. |
|
Returns True if the IO object can be written. |
|
Write bytes to file. |
|
Write lines to the file. |