File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -479,16 +479,44 @@ def get_renderer(self, cleared=False):
479
479
return self .renderer
480
480
481
481
def tostring_rgb (self ):
482
+ '''Get the image as an RGB byte string
483
+
484
+ `draw` must be called at least once before this function will work and
485
+ to update the renderer for any subsequent changes to the Figure.
486
+
487
+ Returns
488
+ -------
489
+ bytes
490
+ '''
482
491
if __debug__ : verbose .report ('FigureCanvasAgg.tostring_rgb' ,
483
492
'debug-annoying' )
484
493
return self .renderer .tostring_rgb ()
485
494
486
495
def tostring_argb (self ):
496
+ '''Get the image as an ARGB byte string
497
+
498
+ `draw` must be called at least once before this function will work and
499
+ to update the renderer for any subsequent changes to the Figure.
500
+
501
+ Returns
502
+ -------
503
+ bytes
504
+
505
+ '''
487
506
if __debug__ : verbose .report ('FigureCanvasAgg.tostring_argb' ,
488
507
'debug-annoying' )
489
508
return self .renderer .tostring_argb ()
490
509
491
510
def buffer_rgba (self ):
511
+ '''Get the image as an RGBA byte string
512
+
513
+ `draw` must be called at least once before this function will work and
514
+ to update the renderer for any subsequent changes to the Figure.
515
+
516
+ Returns
517
+ -------
518
+ bytes
519
+ '''
492
520
if __debug__ : verbose .report ('FigureCanvasAgg.buffer_rgba' ,
493
521
'debug-annoying' )
494
522
return self .renderer .buffer_rgba ()
You can’t perform that action at this time.
0 commit comments