Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

/MacCG/CoreImage/Filter List
Required plugins for this example: MBS MacCG Plugin, MBS Main Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacCG/CoreImage/Filter List
This example is the version from Sun, 17th Mar 2012.
Project "Filter List.rbp"
Class MainWindow Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control List Inherits ListBox
ControlInstance List Inherits ListBox
End Control
EventHandler Sub Open() // load list of filters into listbox dim a() as string dim s as string dim i,c as integer dim d as CFDictionaryMBS dim cf as CIFilterMBS // get all image categories a=ciFilterMBS.FilterNamesInCategory(CIFilterMBS.kCICategoryStillImage) if UBound(a)<0 then MsgBox "No CoreImage filters found." else StaticText1.text=str(UBound(a)+1)+" filters." for each s in a // add to listbox List.AddRow s // load this filter cf=CIFilterMBS.FilterWithName(s) // And look into the attributes for the Displayname if cf<>nil then List.cell(list.LastIndex,1)=cf.DisplayName end if next end if End EventHandler
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
EventHandler Sub Open() if TargetMachO then else MsgBox "This project needs a MachO target." end if End EventHandler
End Class
End Project

Feedback, Comments & Corrections

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

MBS FileMaker Plugins