phoenix_title wx.lib.floatcanvas.FCObjects.ScaledBitmap

Draws a scaled bitmap

The size scales with the drawing


class_hierarchy Class Hierarchy

Inheritance diagram for class ScaledBitmap:

method_summary Methods Summary

__init__

Default class constructor.

CalcBoundingBox

Calculate the bounding box.


api Class API

class ScaledBitmap(TextObjectMixin, DrawObject)

Draws a scaled bitmap

The size scales with the drawing


Methods

__init__(self, Bitmap, XY, Height, Position = 'tl', InForeground = False)

Default class constructor.

Parameters
  • Bitmap (wx.Bitmap) – the bitmap to be drawn

  • XY – the (x, y) coordinate of the corner of the scaled bitmap, or a 2-tuple, or a (2,) NumPy array

  • Height – height to be used, width is calculated from the aspect ratio of the bitmap

  • Position (string) –

    a two character string indicating where in relation to the coordinates the bitmap should be oriented

    1st character

    Meaning

    t

    top

    c

    center

    b

    bottom

    2nd character

    Meaning

    l

    left

    c

    center

    r

    right

  • InForeground (boolean) – should object be in foreground



CalcBoundingBox(self)

Calculate the bounding box.