MBS Plugin Documentation

Search:

Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchie

New in Version 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 9.0

The list of the   themes,   classes,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

class Graphics
class, Graphics & Pictures, MBS QuickTime Plugin (GWorld), class Graphics, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Extends Realbasic's Graphics Class.
Graphics.clearArcMBS(left as integer,top as integer,width as integer,height as integer,start as integer,arc as integer)
method, Graphics & Pictures, MBS Mac Plugin (PictureMac), class Graphics, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Clears an Arc inside the rectangle.
Notes: This function is QuickDraw based. It will not be supported in the future when Realbasic uses more and more Quartz drawing functions.

Some examples which use this method:

Graphics.clearOvalMBS(left as integer,top as integer,width as integer,height as integer)
method, Graphics & Pictures, MBS Mac Plugin (PictureMac), class Graphics, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Clears the oval inside the rectangle.
Notes: This function is QuickDraw based. It will not be supported in the future when Realbasic uses more and more Quartz drawing functions.

Some examples which use this method:

Graphics.clearRoundRectMBS(left as integer,top as integer,width as integer,height as integer, arcwidth as integer, archeight as integer)
method, Graphics & Pictures, MBS Mac Plugin (PictureMac), class Graphics, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Clears the round rectangle inside the rectangle.
Notes: This function is QuickDraw based. It will not be supported in the future when Realbasic uses more and more Quartz drawing functions.

Some examples which use this method:

Graphics.DrawArcMBS(left as integer,top as integer,width as integer,height as integer,start as integer,arc as integer)
method, Graphics & Pictures, MBS Mac Plugin (PictureMac), class Graphics, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Draws an Arc inside the rectangle.
Example:
g.DrawArcMBS 0,0,100,100,5,300

Notes:
left, top, width and height are the circle bounds and start and end the degrees from where to where you want the circle line to be drawn.

This function is QuickDraw based. It will not be supported in the future when Realbasic uses more and more Quartz drawing functions.

Some examples which use this method:

Graphics.FillArcMBS(left as integer,top as integer,width as integer,height as integer,start as integer,arc as integer)
method, Graphics & Pictures, MBS Mac Plugin (PictureMac), class Graphics, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Fills an Arc inside the rectangle.
Example:
g.FillArcMBS 0,0,100,100,5,300

Notes:
left, top, width and height are the circle bounds and start and end the degrees from where to where you want the circle line to be drawn.

This function is QuickDraw based. It will not be supported in the future when Realbasic uses more and more Quartz drawing functions.

Some examples which use this method:

Graphics.HandleMBS as integer
method, Graphics & Pictures, MBS Win Plugin (Win), class Graphics, Plugin version: 4.3, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: The handle of the graphics port.
Notes:
On Mac OS a GrafPort, on Windows a HDC and on Linux a GTK Graphics Port.
Returns 0 on any error.
Graphics.InvertArcMBS(left as integer,top as integer,width as integer,height as integer,start as integer,arc as integer)
method, Graphics & Pictures, MBS Mac Plugin (PictureMac), class Graphics, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Inverts an Arc inside the rectangle.
Notes: This function is QuickDraw based. It will not be supported in the future when Realbasic uses more and more Quartz drawing functions.

Some examples which use this method:

Graphics.InvertOvalMBS(left as integer,top as integer,width as integer,height as integer)
method, Graphics & Pictures, MBS Mac Plugin (PictureMac), class Graphics, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Inverts the oval inside the rectangle.
Notes: This function is QuickDraw based. It will not be supported in the future when Realbasic uses more and more Quartz drawing functions.

Some examples which use this method:

Graphics.InvertRectMBS(left as integer,top as integer,width as integer,height as integer)
method, Graphics & Pictures, MBS Mac Plugin (PictureMac), class Graphics, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Inverts the graphics rectangle.
Notes:
Changed in MBS Plugin 2.7. Old function was a function and named Invert.
This function is QuickDraw based. It will not be supported in the future when Realbasic uses more and more Quartz drawing functions.

Some examples which use this method:

Graphics.InvertRoundRectMBS(left as integer,top as integer,width as integer,height as integer, arcwidth as integer, archeight as integer)
method, Graphics & Pictures, MBS Mac Plugin (PictureMac), class Graphics, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Inverts the round rectangle inside the rectangle.
Notes: This function is QuickDraw based. It will not be supported in the future when Realbasic uses more and more Quartz drawing functions.

Some examples which use this method:

Graphics.PaintdesktopMBS
method, Graphics & Pictures, MBS Picture Plugin (Picture), class Graphics, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Draws on Windows the desktop into the current graphics port.
Notes: May not draw a desktop picture.
Graphics.ScrollMBS(left as integer, top as integer, width as integer, height as integer, dx as integer, dy as integer)
method, Graphics & Pictures, MBS Mac Plugin (PictureMac), class Graphics, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Scrolls the graphics object.
Notes: This function is QuickDraw based. It will not be supported in the future when Realbasic uses more and more Quartz drawing functions.

Some examples which use this method:

Graphics.StretchBltMBS(nXOriginDest as integer, nYOriginDest as integer, nWidthDest as integer, nHeightDest as integer, source as graphics, nXOriginSrc as integer, nYOriginSrc as integer, nWidthSrc as integer, nHeightSrc as integer, dwRop as integer) as boolean
method, Graphics & Pictures, MBS Win Plugin (Win), class Graphics, Plugin version: 6.1, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: The StretchBlt function copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary.
Notes:
This is just a wrapper to the StretchBlt function from the Windows API.

The system stretches or compresses the bitmap according to the stretching mode currently set in the destination device context.

Parameters:

nXOriginDestSpecifies the x-coordinate, in logical units, of the upper-left corner of the destination rectangle.
nYOriginDestSpecifies the y-coordinate, in logical units, of the upper-left corner of the destination rectangle.
nWidthDestSpecifies the width, in logical units, of the destination rectangle.
nHeightDestSpecifies the height, in logical units, of the destination rectangle.
hdcSrcThe source device context.
nXOriginSrcSpecifies the x-coordinate, in logical units, of the upper-left corner of the source rectangle.
nYOriginSrcSpecifies the y-coordinate, in logical units, of the upper-left corner of the source rectangle.
nWidthSrcSpecifies the width, in logical units, of the source rectangle.
nHeightSrcSpecifies the height, in logical units, of the source rectangle.
dwRopSpecifies the raster operation to be performed. Raster operation codes define how the system combines colors in output operations that involve a brush, a source bitmap, and a destination bitmap. See BitBlt for a list of common raster operation codes (ROPs). Note that the CAPTUREBLT ROP generally cannot be used for printing device contexts.

Return Values

If the function succeeds, the return value is true.
If the function fails, the return value is false.

The items on this page are in the following plugins: MBS Mac Plugin, MBS Picture Plugin, MBS QuickTime Plugin, MBS Win Plugin.