SatelliteCameraViewer.CameraImage package

CameraImage

class SatelliteCameraViewer.CameraImage.CameraImage(width=400, height=300)[source]

Bases: object

CameraImage - manages the image drawing for the camera image

Parameters:
  • width (int) – Image width

  • height (int) – Image height

Attributes:
image

image - returns a tkinter-compatible photo image.

Methods

__init __

Attributes:
image

image - returns a tkinter-compatible photo image.

Methods

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.

clear(color=(255, 255, 255))[source]

clear - clear image.

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.

paint(where)[source]

paint - paints the image into the tkinter label

Parameters:

where (tkinter.Label) – The tkinter label.

save()[source]

save - write image to a temporary file in /tmp/ folder.

Submodules