WindowsGraphicsInfoMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

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

Platforms to show: All Mac Windows Linux Cross-Platform

WindowsGraphicsInfoMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Printing 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


💬 Ask a question or report a problem