You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Picture/Sobel
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
EventHandler Sub Open()
dim p as Picture = LogoMBS(500)
show p, "original"
show p.SobelChannelsMBS(true, false, false, 1,3,true), "only red, swap, west and north"
show p.SobelChannelsMBS(true, false, false, 2,4,true), "only red, swap, east and south"
show p.SobelMBS(1,3,true,false), "color, swap, west and north"
show p.SobelMBS(2,4,true,false), "color, swap, east and south"
show p.SobelMBS(5,6,false,false), "color, southeast and northwest"
show p.SobelMBS(7,8,false,false), "color, northeast and southwest"
show p.SobelMBS(1,3,true,true), "gray, swap, west and north"
show p.SobelMBS(2,4,true,true), "gray, swap, east and south"
show p.SobelMBS(5,6,false,true), "gray, southeast and northwest"
show p.SobelMBS(7,8,false,true), "gray, northeast and southwest"
End EventHandler
Sub show(pic as Picture, title as string)
dim w as new window1
w.Backdrop = pic
w.Title = Title
w.show
End Sub
End Class
Class Window1 Inherits Window
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&Ablage"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Bearbeiten"
MenuItem EditUndo = "&Rückgängig"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "&Ausschneiden"
MenuItem EditCopy = "&Kopieren"
MenuItem EditPaste = "&Einfügen"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "&Alles auswählen"
End MenuBar