Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsGraphicsInfoMBS class.

WindowsGraphicsInfoMBS.AspectX as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Relative width of a device pixel used for line drawing.

(Read and Write property)

WindowsGraphicsInfoMBS.AspectXY as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Diagonal width of the device pixel used for line drawing.

(Read and Write property)

WindowsGraphicsInfoMBS.AspectY as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Relative height of a device pixel used for line drawing.

(Read and Write property)

WindowsGraphicsInfoMBS.BitsPerPixel as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Number of adjacent color bits for each pixel.
Example
dim p as new Picture(200, 200, 32)
dim info as new WindowsGraphicsInfoMBS(p.Graphics)

MsgBox "Color Depth: "+str(info.BitsPerPixel)

As example gives a display device context, the bits per pixel is the screen depth.
(Read and Write property)

WindowsGraphicsInfoMBS.BrushesCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Number of device-specific brushes.

(Read and Write property)

WindowsGraphicsInfoMBS.ColorCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Number of entries in the device's color table, if the device has a color depth of no more than 8 bits per pixel.

For devices with greater color depths, 1 is returned.
(Read and Write property)

WindowsGraphicsInfoMBS.DesktopResolutionX as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Horizontal width of entire desktop in pixels.
Example
dim p as new Picture(200, 200, 32)
dim info as new WindowsGraphicsInfoMBS(p.Graphics)

MsgBox "Size of Windows Desktop: "+str(info.DesktopResolutionX)+ " x "+str(info.DesktopResolutionY)

(Read and Write property)

WindowsGraphicsInfoMBS.DesktopResolutionY as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Vertical height of entire desktop in pixels.
Example
dim p as new Picture(200, 200, 32)
dim info as new WindowsGraphicsInfoMBS(p.Graphics)

MsgBox "Size of Windows Desktop: "+str(info.DesktopResolutionX)+ " x "+str(info.DesktopResolutionY)

(Read and Write property)

WindowsGraphicsInfoMBS.DriverVersion as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The device driver version.

(Read and Write property)

WindowsGraphicsInfoMBS.FontCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Number of device-specific fonts.

(Read and Write property)

WindowsGraphicsInfoMBS.LogPixelsX as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Number of pixels per logical inch along the screen width.
Example
dim g as Graphics = OpenPrinter
dim info as WindowsGraphicsInfoMBS = g.WindowsGraphicsInfoMBS

MsgBox "Printer resolution: "+str(info.LogPixelsX)+" x "+str(info.LogPixelsY)

In a system with multiple display monitors, this value is the same for all monitors.
(Read and Write property)

WindowsGraphicsInfoMBS.LogPixelsY as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Number of pixels per logical inch along the screen height.
Example
dim g as Graphics = OpenPrinter
dim info as WindowsGraphicsInfoMBS = g.WindowsGraphicsInfoMBS

MsgBox "Printer resolution: "+str(info.LogPixelsX)+" x "+str(info.LogPixelsY)

In a system with multiple display monitors, this value is the same for all monitors.
(Read and Write property)

WindowsGraphicsInfoMBS.MakersCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Number of markers the device has.

(Read and Write property)

WindowsGraphicsInfoMBS.PenCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Number of device-specific pens.

(Read and Write property)

WindowsGraphicsInfoMBS.PhysicalHeight as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
For printing devices: the height of the physical page, in device units.

For example, a printer set to print at 600 dpi on 8.5-by-11-inch paper has a physical height value of 6600 device units. Note that the physical page is almost always greater than the printable area of the page, and never smaller.
(Read and Write property)

WindowsGraphicsInfoMBS.PhysicalOffsetX as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
For printing devices: the distance from the left edge of the physical page to the left edge of the printable area, in device units.

For example, a printer set to print at 600 dpi on 8.5-by-11-inch paper, that cannot print on the leftmost 0.25-inch of paper, has a horizontal physical offset of 150 device units.
(Read and Write property)

WindowsGraphicsInfoMBS.PhysicalOffsetY as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
For printing devices: the distance from the top edge of the physical page to the top edge of the printable area, in device units.

For example, a printer set to print at 600 dpi on 8.5-by-11-inch paper, that cannot print on the topmost 0.5-inch of paper, has a vertical physical offset of 300 device units.
(Read and Write property)

WindowsGraphicsInfoMBS.PhysicalWidth as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
For printing devices: the width of the physical page, in device units.

For example, a printer set to print at 600 dpi on 8.5-x11-inch paper has a physical width value of 5100 device units. Note that the physical page is almost always greater than the printable area of the page, and never smaller.
(Read and Write property)

WindowsGraphicsInfoMBS.Planes as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Number of color planes.

(Read and Write property)

WindowsGraphicsInfoMBS.ResolutionX as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Width, in pixels, of the screen; or for printers, the width, in pixels, of the printable area of the page.

(Read and Write property)

WindowsGraphicsInfoMBS.ResolutionY as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Height, in raster lines, of the screen; or for printers, the height, in pixels, of the printable area of the page.

(Read and Write property)

WindowsGraphicsInfoMBS.ScalingFactorX as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Scaling factor for the x-axis of the printer.

(Read and Write property)

WindowsGraphicsInfoMBS.ScalingFactorY as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Scaling factor for the y-axis of the printer.

(Read and Write property)

WindowsGraphicsInfoMBS.SizeX as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Width, in millimeters, of the physical screen.

(Read and Write property)

WindowsGraphicsInfoMBS.SizeY as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Height, in millimeters, of the physical screen.

(Read and Write property)

WindowsGraphicsInfoMBS.Technology as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Device technology. It can be any one of the kTechnology* constants.

(Read and Write property)

WindowsGraphicsInfoMBS.VRefresh as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
For display devices: the current vertical refresh rate of the device, in cycles per second (Hz).

(Read and Write property)

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


The biggest plugin in space...