Platforms to show: All Mac Windows Linux Cross-Platform

WindowsGraphicsInfoMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Printing Windows MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
This class gives information for Windows Device contexts.
Example
dim g as Graphics = OpenPrinter
dim info as WindowsGraphicsInfoMBS = g.WindowsGraphicsInfoMBS

MsgBox _
"Printer physical page size: "+str(info.PhysicalWidth)+" "+str(info.PhysicalHeight)+_
EndOfLine+_
"Useable paper size: "+str(info.ResolutionX)+ " x "+str(info.ResolutionY)+_
EndOfLine+_
"Paper size: "+str(info.SizeX)+" x "+str(info.Sizey)+" mm"

Main use currently is to learn about native resolution of a printer graphics object.

Technology Constants

Constant Value Description
kTechnologyCharStream 4 Character stream
kTechnologyDisplayFile 6 Display file
kTechnologyMetaFile 5 Metafile
kTechnologyPlotter 0 Vector plotter
kTechnologyRasterCamera 3 Raster camera
kTechnologyRasterDisplay 1 Raster display
kTechnologyRasterPrinter 2 Raster printer

This class has no sub classes.

Some methods using this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes


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


WindowsGraphicsDeviceContextMBS   -   WindowsGUIResourcesMBS


The biggest plugin in space...