Platforms to show: All Mac Windows Linux Cross-Platform

/Picture/Picture Scale/Scale Test


Required plugins for this example: MBS Picture Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Picture/Picture Scale/Scale Test

This example is the version from Sun, 17th Mar 2012.

Project "Scale Test.xojo_binary_project"
Class Window1 Inherits Window
EventHandler Function KeyDown(Key As String) As Boolean if asc(key)=32 then antialias=not antialias run Return true end if End EventHandler
EventHandler Sub Open() antialias=true run End EventHandler
EventHandler Sub Resized() run End EventHandler
Sub Run() dim p,p1 as Picture p=SpecialFolder.Desktop.IconImageMBS(128) if p=nil then p=SpecialFolder.Desktop.IconImageMBS(32) end if p1=p.ScaleMBS(Width,Height,antialias) Backdrop=p1 End Sub
Property Protected antialias As boolean
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
End Class
End Project

See also:

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


The biggest plugin in space...