Platforms to show: All Mac Windows Linux Cross-Platform

Back to QDPictMBS class.

QDPictMBS.Constructor(dataProvider as CGDataProviderMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 9.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Creates a new QTPictMBS object based on a data provider.

Create a QDPict object, using dataProvider to obtain the QDPict's data.
It is assumed that either the first byte or the 513th byte of data in the file referenced by the URL is the first byte of the picture header. If the URL does not begin PICT data at one of these places in the data fork then the handle property will be 0.

See also:

QDPictMBS.Constructor(file as folderitem)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 9.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Creates a new QTPictMBS object based on a file.

See also:

QDPictMBS.Constructor(url as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 12.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Creates a new QTPictMBS object based on an url.

Create a QDPict from an url.
It is assumed that either the first byte or the 513th byte of data in the file referenced by the URL is the first byte of the picture header. If the URL does not begin PICT data at one of these places in the data fork then the handle property will be 0.

See also:

QDPictMBS.DrawToCGContext(context as CGContextMBS, r as CGRectMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 9.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Draws the picture into the given context.

You can increase the drawing resolution by passing a bigger rectangle.
Lasterror is set. -1 if context or rectangle are invalid.

Draw picture in the rectangular area specified by r. The PICT bounds of the page is scaled, if necessary, to fit into the rectangle. To get unscaled results, supply a rect the size of the rect returned by GetBounds.

QDPictMBS.GetBounds as CGRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 9.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Queries the bounds of the picture.

This are the bounds in pixel for 72 dpi.

Return the Picture Bounds of the QuickDraw picture represented by the picture. This rectangle is in the default user space with one unit = 1/72 inch.

QDPictMBS.GetResolution(byref xRes as single, byref yRes as single)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 9.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Queries the resolution of the picture.

Return the resolution of the QuickDraw picture represented by the picture.
This data, together with the CGRect returned by GetBounds, can be used to compute the size of the picture in pixels, which is what QuickDraw really records into pictures.

QDPictMBS.Height as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 9.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The height of the picture.

This value is using 72 dpi.

QDPictMBS.HorizontalResolution as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 9.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The horizontal resolution.

QDPictMBS.VerticalResolution as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 9.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The vertical resolution.

QDPictMBS.Width as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 9.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The width of the picture.

This value is using 72 dpi.

The items on this page are in the following plugins: MBS MacCG Plugin.


The biggest plugin in space...