Platforms to show: All Mac Windows Linux Cross-Platform
Graphics class
Type | Topic | Version |
class | Graphics & Pictures |
- 12 methods
- method DrawCGPDFDocumentMBS(pdf as CGPDFDocumentMBS, r as CGRectMBS, page as Integer)
- method DrawCGPDFDocumentMBS(pdf as CGPDFDocumentMBS, r as CGRectMBS, page as Integer, InterpolationQuality as Integer, Antialias as boolean, FontSmoothing as Boolean)
- method DrawRotatedTextMBS(Rotation as Double, text as string, x as Integer, y as Integer, Center as Boolean = false, alpha as Double = 1.0, NoSwapY as boolean = false, FontWidth as Integer = 0)
- method DrawWindowsIconMBS(file as folderitem, IconID as Integer, x as Integer, y as Integer, w as Integer, h as Integer) as boolean
- method MeasureRotatedTextMBS(text as string, byref Width as Double, byref Height as Double, FontWidth as Integer = 0) as Boolean
- method PaintdesktopMBS
- method 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 StretchDIBitsMBS(XDest as Integer, YDest as Integer, DestWidth as Integer, DestHeight as Integer, XSource as Integer, YSource as Integer, SourceWidth as Integer, SourceHeight as Integer, Bits as memoryblock, ImageWidth as Integer, ImageHeight as Integer, ImageBitCount as Integer) as boolean
- method WinApplyDevModeMBS(devmode as WindowsDeviceModeMBS) as boolean
- method WindowsGraphicsInfoMBS as WindowsGraphicsInfoMBS
- method WinEndPageMBS as boolean
- method WinStartPageMBS as boolean
This class has no sub classes.
See also in the Xojo Language Reference
Some methods using this class:
- CGContextMBS.Constructor(g as graphics)
- DirectDrawGraphicsMBS.Constructor(Graphics as Graphics)
- WindowsGraphicsDeviceContextMBS.Constructor(g as graphics)
- WindowsGraphicsInfoMBS.Constructor(g as graphics)
Some properties using for this class:
- DynaPDFMBS.PageGraphics as Graphics
- WindowsGraphicsDeviceContextMBS.Graphics as Graphics
Some events using this class:
- DynaPDFMBS.NextPage(g as graphics)
Release notes
- Version 22.4
- Fixed picture and graphics handling bug for Windows ARM.
- Version 22.2
- Adjusted how we calculate character spacing for graphics in DynaPDFMBS, so we match better what Xojo does.
- Changed ClearPageGraphics in DynaPDFMBS to clear last font, so next time you draw to graphics, we set it again.
- Version 22.0
- Fixed a problem in Graphics class with DynaPDFMBS where in some case the font was not set and DynaPDF reported an error about missing font.
- Version 21.4
- Fixed Graphics.DrawString to better draw condensed text for DynaPDFMBS class.
- Version 21.2
- Changed DrawRotatedTextMBS, MeasureRotatedTextMBS and DrawCGPDFDocumentMBS methods to use newer API to get the CGContextRef for drawing.
- Version 21.1
- Fixed issue with Graphics.TextHeight for DynaPDFMBS class.
- Fixed problem in DynaPDFMBS class with graphics, where we reset font to default one on nextpage call.
- Version 20.5
- Added support for LineDash, LineJoin and LineCap to DynaPDFMBS class for graphics support.
- Fixed DrawRectangle function for graphics in DynaPDFMBS class to work on Windows.
- Version 20.3
- Added ClearRectangle and FillPath method support for Graphics class in DynaPDFMBS class.
- Added new constructor for CGContextMBS class accepting graphics object.
- Version 20.2
- Added ClearRectMode to DynaPDFMBS class to ignore calls to Graphics.ClearRect and allow background to show.
- Added implementation for DrawPath in Graphics class. Raises exception if path is not of class DynapdfGraphicsPathMBS.
- Added TextShape class support for Object2D drawing with DynaPDFMBS class's graphics integration.
- Changed DynaPDF Graphics to use PenSize property for Xojo 2019r2 or newer.
- Corrected alignment issues for TextShape/StringShape class handling with DynaPDFMBS class's graphics integration.
The items on this page are in the following plugins: MBS MacCG Plugin, MBS Picture Plugin, MBS Util Plugin, MBS Win Plugin.
GMUnsupportedExceptionMBS - GroupBox