# cee::vis::OverlayImage

class `OverlayImage` : public OverlayItem

  A view overlay item capable of showing an image with optional blending.

  The overlay item can be added to a view using the View::overlay() and Overlay::addItem(). The view manages the layout of the overlay items, so only a desired size can be given in in this class. The position is specified when the overlay item is added to the view.

  An overlay item can be shown in multiple views at the same time.

  See also

  OverlayItem, Overlay, and View

  Public Types

  enum `Blending`

    Available modes are NO_BLENDING, GLOBAL_ALPHA and TEXTURE_ALPHA.

    Values:

    enumerator `NO_BLENDING`

      No blending.

    enumerator `GLOBAL_ALPHA`

      Global alpha blending.

    enumerator `TEXTURE_ALPHA`

      Texture alpha blending.

  Public Functions

  `OverlayImage`()

    Constructs an overlay image without any image data.

  `OverlayImage`(Image *image)

    Constructs an overlay image using the image data in image.

  const Image *`image`() const

    Returns the image.

  void `setImage`(Image *image)

    Sets the image data.

  void `setGlobalAlpha`(float alpha)

    Sets the alpha value of the image.

  float `globalAlpha`() const

    Returns the global alpha value.

  void `setBlendingMode`(Blending mode)

    Sets blending mode.

    Available modes are NO_BLENDING, GLOBAL_ALPHA and TEXTURE_ALPHA.

  Blending `blendingMode`() const

    Returns blending mode.

    Available modes are NO_BLENDING, GLOBAL_ALPHA and TEXTURE_ALPHA.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...