Referência de Objetos ou componentes

Application
ClipBoard
Printer
QBitMap
QButton
QCanvas
QCheckBox
QComboBox
QComPort
QCoolBtn
QDirTree
QEdit
QFileListBox
QFileStream
QFont
QFontDialog
QForm
QGauge
QGlassFrame
QGroupBox
QHeader
QImage
QImageList
QLabel
QListBox
QListView
QMainMenu
QMemoryStream
QMenuItem
QMySQL
QNotifyIconData
QOpenDialog
QOleObject
QOleContainer
QOutLine
QOvalBtn
QPanel
QPopMenu
QRadioButton
QRect
QRegistry
QRichEdit
QSaveDialog
QScrollBar
QScrolBox
QSocket
QSplitter
QStatusBar
QStringGrid
QStringList
QTabControl
QTimer
QTrackBar
QTreeView
Componente QBitMap (Mapa de bits)

QBitMap é um componente não visível, usado para
armazenar/restaurar imagens tipo BMP.
Demais componentes    - Click Barra lateral esquerda
Informações adicionais - Click propriedades  em azul
Propriedades de QBitMap
   Campo    Tipo    R/W+    Padrão    Suporte#
 BMP
 STRING    RW      W
 BMPHandle
 RESOURCE    W      W
 CopyMode
 INTEGER    RW  cmBlackness    W
 Empty
 INTEGER    R      W
 Font
 QFONT    W      W
 Handle
 INTEGER    RW      W
 Height
 INTEGER    RW      WG
 Monochrome
 INTEGER    RW      W
 Pixel
 2D ARRAY of INTEGER    RW      WG
 PixelFormat
 INTEGER    RW  pfDevice    W
 Top
 INTEGER    RW      WG
 Transparent
 INTEGER    RW  False    W
 TransparentColor
 INTEGER    RW      W
 TransparentMode
 INTEGER    RW  tmAuto    W
 Width
 INTEGER    RW      WG
+ R = Propriedade de leitura   W = Propriedade de escrita             #W = Windows  X = Linux  G = Solaris


Métodos de QBitMap
   Método    Tipo    Descrição  Parâmetros  Suporte#
 Circle
SUB (x1%, y1%, x2%, y2%, c%, fill%) Desenha e preenche Circle    6    WG
 CopyRect
SUB (D, Image, S) D and S are QRECTs, Image pode ser uma QImage, QCanvas, ou QBitMap    3    W
 Draw
SUB (x%, y%, BMP) Desenha Bitmap no Canvas    3    WG
 FillRect
SUB (x%, y%, x2%, y2%, c%) Desenha e preenche um retangulo    5    WG
 Line
SUB (x1%, y1%, x2%, y2%, c%) Desenha uma linha    5    WG
 LoadFromFile
SUB (FileName$) Carrega BMP de um stream    1    W
 LoadFromStream
SUB (Stream) Desenha e preenche um retangulo    5    WG
 Paint
SUB (x%, y%, c%, borderc%) Preenche a Região    4    WG
 Pset
SUB (x%, y%, c%) Plota pixel    3    WG
 Retangle
SUB (x1%, y1%, x2%, y2%, c%) Desenha um retangulo    5    WG
 Rotate
SUB (xOrigin%, yOrigin%, Angle%) Rotaciona o bitmap na origem especificada    3    W
 RoundRect
SUB (x1%, y1%, x2%, y2%, x3%, y3%, c%) Desenha e preenche um retângulo arredondado    7    W
 SaveToFile
SUB (FileName$) Salva um BMP num arquivo    1    W
 SaveToStream
SUB (Stream) Salva um BMP num stream    1    W
 StretchDraw
SUB (Rect AS QRECT, BMP) Desenha BMP e ajusta-o para encher o Retângulo    2    W
 TextHeight
FUNCTION (Text$) AS WORD Retorna a altura em pixels, da string Text$    1    W
 TextWidth
FUNCTION (Text$)AS WORD Retorna a largura em pixels da string Text$    1    W
 TextRect
SUB (RectbAS QRECT, x%, y%, S$, fc%, bc%) Escreve texto e encaixa-o na região do retangulo    6    W
 TextOut
SUB (x%, y%, S$, fc%, bc%) Escreve texto na imagem    5    WG
#W = Windows  X = Linux  G = Solaris


QBitmap exemplo:

DIM BitMap AS QBitMap

BitMap.BMP = "close.bmp"

CREATE Form AS QForm
    CREATE Image1 AS QImage
       Left = 100
       Draw 5, 5, BitMap.BMP
    END CREATE
    Center
    ShowModal
END CREATE
Sinta-se à vontade para dar sugestões e fazer críticas construtivas.

Anterior           Alto da página           Página Inicial             Próxima