SatelliteCameraViewer.CameraImage.CameraImage module
CameraImage
- class SatelliteCameraViewer.CameraImage.CameraImage.CameraImage(width=400, height=300)[source]
Bases:
objectCameraImage - manages the image drawing for the camera image
- Parameters:
width (int) – Image width
height (int) – Image height
- Attributes:
imageimage - returns a tkinter-compatible photo image.
Methods
circle(xy, radius[, color, width])circle - draw a circle.
clear([color])clear - clear image.
line(xy1, xy2[, color, width])line - draw a line.
paint(where)paint - paints the image into the tkinter label
save()save - write image to a temporary file in /tmp/ folder.
__init __
- Attributes:
imageimage - returns a tkinter-compatible photo image.
Methods
circle(xy, radius[, color, width])circle - draw a circle.
clear([color])clear - clear image.
line(xy1, xy2[, color, width])line - draw a line.
paint(where)paint - paints the image into the tkinter label
save()save - write image to a temporary file in /tmp/ folder.
- circle(xy, radius, color=(0, 0, 0), width=1)[source]
circle - draw a circle.
- Parameters:
xy1 (tuple[float, float]) – Center of circle as an (x,y) tuple.
radius (float) – Circle radius.
color (tuple[int, int, int]) – Color of circle as an (r,g,b) tuple.
width (float) – circle outline width.
- property image
image - returns a tkinter-compatible photo image.
- Returns:
image
- Type:
PIL.ImageTk.PhotoImage
- line(xy1, xy2, color=(0, 0, 0), width=1)[source]
line - draw a line.
- Parameters:
xy1 (tuple[float, float]) – Start of line as an (x,y) tuple.
xy2 (tuple[float, float]) – Start of line as an (x,y) tuple.
color (tuple[int, int, int]) – Color of line as an (r,g,b) tuple.
width (float) – Line width.