Platforms to show: All Mac Windows Linux Cross-Platform
CGRectMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
- 6 properties
- 28 methods
- method ApplyAffineTransform(a as CGAffineTransformMBS) as CGRectMBS
- method Binary as MemoryBlock
- method Constructor
- method Constructor(p as Ptr)
- method Constructor(source as CGRectMBS)
- method Constructor(x as Double, y as Double, width as Double, height as Double)
- method ContainsPoint(r as CGPointMBS) as boolean
- method ContainsRect(r as CGRectMBS) as boolean
- method Divide(byref slice as CGRectMBS, byref remainder as CGRectMBS, amount as Double, edge as Integer)
- method Equal(r as CGRectMBS) as boolean
- method Inset(dx as Double, dy as Double) as CGRectMBS
- method Integral as CGRectMBS
- method Intersection(r as CGRectMBS) as CGRectMBS
- method IntersectsRect(r as CGRectMBS) as boolean
- method IsEmpty as boolean
- method IsInfinite as boolean
- method IsNull as boolean
- method MaxX as Double
- method MaxY as Double
- method MidX as Double
- method MidY as Double
- method MinX as Double
- method MinY as Double
- method multiply(factor as double) as CGRectMBS
- method multiply(x as double, y as double) as CGRectMBS
- method Offset(dx as Double, dy as Double) as CGRectMBS
- method Standardize as CGRectMBS
- method Union(r as CGRectMBS) as CGRectMBS
- 4 shared methods
This class has no sub classes.
Blog Entries
- Segment documents in images for Xojo
- MBS Xojo Plugins, version 24.5pr3
- Several ways for picture to PDF in MBS Plugins
- Automated video editing with Xojo
- MBS Real Studio Plugins, version 12.0pr6
- MBS REALbasic plug-ins version 9.5
Xojo Developer Magazine
Release notes
- Version 24.5
- Added multiply method to CGPointMBS, CGSizeMBS and CGRectMBS classes.
Some useful global functions for this class:
- CGMakeRectMBS(left as Double, top as Double, width as Double, height as Double) as CGRectMBS
- CGNewPDFDocumentMBS(consumer as CGDataConsumerMBS, MediaBox as CGRectMBS, title as string, author as string, creator as string) as CGPDFContextMBS
- CGNewPDFDocumentMBS(file as folderitem, MediaBox as CGRectMBS, title as string, author as string, creator as string) as CGPDFContextMBS
- CGNewPDFDocumentMBS(file as folderitem, MediaBox as CGRectMBS, title as string, author as string, creator as string, subject as string, keywords as string, OwnerPassword as string, UserPassword as string, AllowsPrinting as boolean, AllowsCopy as boolean) as CGPDFContextMBS
- CGNewPDFDocumentMBS(file as folderitem, MediaBox as CGRectMBS, title as string, author as string, creator as string, subject as string, keywords as string, OwnerPassword as string, UserPassword as string, AllowsPrinting as boolean, AllowsCopy as boolean, KeyLength as Integer) as CGPDFContextMBS
Some methods using this class:
- CALayerMBS.setNeedsDisplayInRect(r as CGRectMBS)
- CGContextMBS.FillEllipseInRect(rect as CGRectMBS)
- CGDisplayStreamUpdateMBS.getRects(type as Integer) as CGRectMBS()
- CIContextMBS.DrawImageRect(ciImage as CIImageMBS, DestRect as CGRectMBS, SourceRect as CGRectMBS = nil)
- CIImageMBS.CreateCGImage(r as CGRectMBS, ColorSpace as CGColorSpaceMBS) as CGImageMBS
- CTFontMBS.BoundingRectsForGlyphs(orientation as Integer, glyphs() as Integer, boundingRects() as CGRectMBS) as CGRectMBS
- FolderItem.NewCGPDFDocumentMBS(MediaBox as CGRectMBS, title as string, author as string, creator as string, subject as string, keywords as string, OwnerPassword as string, UserPassword as string, AllowsPrinting as boolean, AllowsCopy as boolean, KeyLength as Integer) as CGPDFContextMBS
- FolderItem.NewCGPDFDocumentWithInfoMBS(MediaBox as CGRectMBS, info as object) as CGPDFContextMBS
- MKOverlayRendererMBS.RectForMapRect(mapRect as MKMapRectMBS) as CGRectMBS
- VNDetectedObjectObservationMBS.Constructor(boundingBox as CGRectMBS)
Some properties using for this class:
- AVCaptureDeviceMBS.centerStageRectOfInterest as CGRectMBS
- CALayerMBS.bounds as CGRectMBS
- CALayerMBS.contentsRect as CGRectMBS
- CGFontMBS.FontBBox as CGRectMBS
- CTFontMBS.BoundingBox as CGRectMBS
- PHImageRequestOptionsMBS.normalizedCropRect as CGRectMBS
- SCNTextMBS.containerFrame as CGRectMBS
- VNDetectedObjectObservationMBS.boundingBox as CGRectMBS
- VNImageBasedRequestMBS.regionOfInterest as CGRectMBS
- AVCaptureScreenInputMBS.cropRect as CGRectMBS
Some events using this class:
- CGScreenRefreshEventMBS.ScreenRefresh(rectCount as Integer, rects() as CGRectMBS)
- CGScreenUpdateMoveEventMBS.ScreenMove(deltaX as Integer, deltaY as Integer, rectCount as Integer, rects() as CGRectMBS)
Some examples using this class:
- /DynaPDF/Raster/PDF Diff
- /MacCG/Carbon Print Manager/sample with sheets
- /MacCG/CG Ovals with PDF in memory
- /MacCG/CGImage with different color spaces
- /MacCG/CoreGraphics PDF/Getpicture PDF
- /MacCG/CoreGraphics PDF/PDF Text
- /MacCG/CoreGraphics PDF/PDF Transparency
- /MacCG/CoreGraphics PDF/Show PDF
- /MacCG/CoreGraphics PDF/Simple Make PDF
- /MacCG/Print PDF with CoreGraphics/Print PDF with CoreGraphics
Some related classes:
- class CALayerMBS
- class CGImageMBS
- class CGPDFContextMBS
- class CGPointMBS
- class CGSizeMBS
- class CIImageMBS
- class MKOverlayRendererMBS
- class SCNTextMBS
- class VNDetectedObjectObservationMBS
- class VNImageBasedRequestMBS
The items on this page are in the following plugins: MBS MacCG Plugin.
CGPSConverterMBS - CGSConnectionMBS
