PtBitmap

Gamma/Photon: Using Gamma™ with the Photon microGUIŽ, Version 4.0
Prev |  | Next

# `PtBitmap`

`PtBitmap` -- A bitmapped image.

## Synopsis

    class PtBitmap PtBasic
    {
        bitmap_balloon;               // PtWidget  (Pt_ARG_BITMAP_BALLOON)
        bitmap_balloon_color;         // color  (Pt_ARG_BITMAP_BALLOON_COLOR)
        bitmap_balloon_fill_color;    // color  (Pt_ARG_BITMAP_BALLOON_FILL_COLOR)
        bitmap_balloon_position;      // short  (Pt_ARG_BITMAP_BALLOON_POSITION)
        bitmap_colors;                // color array  (Pt_ARG_BITMAP_COLORS)
        bitmap_data;                  // char array array  (Pt_ARG_BITMAP_DATA)
        bitmap_flags;                 // flag  (Pt_ARG_BITMAP_FLAGS)
        bitmap_text;                  // string  (Pt_ARG_BITMAP_TEXT)
        set_bg_color;                 // color  (Pt_ARG_BMP_SET_BG_COLOR)
        set_bg_fill;                  // unsigned char  (Pt_ARG_BMP_SET_BG_FILL)
        set_bitmap_colors;            // color array  (Pt_ARG_SET_BITMAP_COLORS)
        set_bitmap_data;              // char array array  (Pt_ARG_SET_BITMAP_DATA)
    }

## Base Classes

`PtWidget` <-- `PtBasic` <-- `PtBitmap`

## Description

This widget is used to draw bitmaps, but is difficult to create and use in code. The easiest way to work with images in Gamma is with the `PhImage` class, which lets you create images in other applications and attach them to a `PtPane` or `PtButton` as necessary.

If for some reason you need a `PtBitmap`, it is fully supported in Gamma, but we recommend creating and modifying it in PhAB, not in code.

| For detailed information, please refer to PtBitmap in the Photon documentation.

## Instance Variables

bitmap_balloon

bitmap_balloon_color

bitmap_balloon_fill_color

bitmap_balloon_position

  This instance variable may have one of the following values:

  Constant | Description
  --- | ---
  `Pt_BITMAP_BALLOON_RIGHT` | The text will pop up on the right.
  `Pt_BITMAP_BALLOON_LEFT` | The text will pop up on the left.
  `Pt_BITMAP_BALLOON_TOP` | The text will pop up at the top.
  `Pt_BITMAP_BALLOON_BOTTOM` | The text will pop up at the bottom.
  `Pt_BITMAP_BALLOON_INPLACE` | The text will pop up in place.

bitmap_colors

bitmap_data

bitmap_flags

  This instance variable may be a combination of zero or more of the following flags:

  Constant | Description
  --- | ---
  `Pt_BITMAP_SHOW_BALLOON` | Causes balloon help to be shown if the cursor remains stationary over the bitmap for 1.25 seconds.

bitmap_text

set_bg_color

set_bg_fill

set_bitmap_colors

set_bitmap_data

Prev | Home | Next
`PtBezier` | Up | `PtBkgd`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.