Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

QuartzFilterMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class CoreGraphics MBS MacControls Plugin 8.6 Yes No No Yes, macOS only No
Function: The Quartz filter class.
Example:
// Create a couple of PDF files to test different Quartz filters

// get some picture
dim pic as Picture = LogoMBS(500)
dim image as new NSImageMBS(pic)

// create page with picture
dim page as new PDFPageMBS(image)

// create new document
dim doc as new PDFDocumentMBS

// add page
doc.insertPage(page,0)

// get filters
dim manager as new QuartzFilterManagerMBS
dim filters() as QuartzFilterMBS = Manager.filters

for each filter as QuartzFilterMBS in filters

// save PDF with this filter
dim file as FolderItem = SpecialFolder.Desktop.Child(filter.localizedName+".pdf")

call doc.write(file, filter)

next
Notes:
This filters can be used to change PDFs on writing like to reduce the file size.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Feedback, Comments & Corrections

This class has no sub classes.

Some methods using this class:

Some events for this class:

Some examples which use this class:


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


QuartzFilterManagerMBS   -   QuartzFilterViewMBS




Links
MBS Xojo Plugins