Guidance
指路人
g.yi.org
software / rapidq / Examples / QObject / Object / QBitmapEx.html

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Appendix A: QBitmapEx  
Documentation component by D.Glodt (c)2000-2004 Appendix A: QBitmapEx

QBitmapEx Component

QBitmapEx is a control as a QBitmap with extensions of  méthods.
The loading of other graphic formats as well as the storage to Jpg format are possible

          if the DLL Nviewlib is present in the system window or the directory of application.

QBitmapEx Properties

Field Type R/W Default




PenSize Long RW 1
Pen size for draw  line,rectangle and circle RW
PenStyle Long RW PS_SOLID_BMP
Pen style , the others values are:
PS_SOLID_BMP=0
PS_DASH_BMP=1
PS_DOT_BMP=2
PS_DASHDOT_BMP=3
PS_DASHDOTDOT_BMP=4
PS_NULL_BMP=5
PS_INSIDEFRAME_BMP=6

QBitmapEx Methods

Method Type Description Params




DrawIco SUB(left%,top%,width%,height%,handle%) Draw an icon 3
If the width and height parameters  are  0,the icon will show with his dimensions by défault.
CopyToClipboard SUB Copy image to clipboard 0
PasteFromClipboard SUB(x%,y%) Paste the image of clipboard 2
GetWidthClipboard FUNCTION as INTEGER Return the image width  of clipboard 0
GetHeightClipboard FUNCTION as INTEGER Return the image height of clipboard 0
CanPaste FUNCTON as BOOLEAN Return true if image présent in the clipboard 0
Circle SUB(x1%,y1%,x2%,y2%,c%) Draw a circle 5
CircleFilled SUB(x1%,y1%,x2%,y2%,c%,Fill%) Draw a circle filled 6
Rectangle SUB(x1%,y1%,x2%,y2%,c%) Draw a rectangle 5
RectangleFilled SUB(x1%,y1%,x2%,y2%,c%,Fill%) Draw a rectangle filled 6
RoundRect SUB(x1%,y1%,x2%,y2%,x3%,y3%,c%) Draw a round rectangle 7
RoundRectFilled SUB(x1%,y1%,x2%,y2%,x3%,y3%,c%,Fill%) Draw a round rectangle filled 8
Line SUB(x1%,y1%,x2%,y2%,c%) Draw a line 5
FillSurface SUB(x%,y%,c%) Fill the surface pointed by the color of pixel x,y 3
TextOut SUB(x%,y%,s$,fc%,bc%) Draw  text 5
InvertColor SUB(x%,y%,width%,height%) Invert color 4
Mirror SUB(x%,y%,width%,height%) Make a miror x 4
Flip SUB(x%,y%,width%,height%) Make a miror y 4
LoadOtherImage SUB(FileName$,Progress&,Language$) Load image from dll Nviewlib format 3
The parameter progress is use to display a bar of  progression 
during the loading of file.(true or false) 
The Language parameter corresponds to the language supported by
DLL 
SaveAsJpg SUB(FileName$,Quality&) Save image to jpg format 2
The Quality parameter corresponds to the storage quality.

QBitmapEx Events

Event Type Occurs when... Params




QBitmapEx Example

掌柜推荐
 
 
¥738.00 ·
 
 
¥1,480.00 ·
 
 
¥397.00 ·
 
 
¥950.00 ·
 
 
¥264.00 ·
 
 
¥1,005.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2003-12-31 11:51:28