Platforms to show: All Mac Windows Linux Cross-Platform

/Images/PNG/PNG Test


Required plugins for this example: MBS Main Plugin, MBS Images Plugin

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

This example is the version from Sun, 5th May 2018.

Project "PNG Test.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control Timer1 Inherits Timer
ControlInstance Timer1 Inherits Timer
EventHandler Sub Action() // take only first x bytes dim l as integer = lenb(data)*rnd dim s as string = leftb(data, l) // decode that first bytes and show it dim p as Picture = PNGStringToPictureMBS(s,0,true) Backdrop = p // count n = n + 1 Title = str(n) // another round me.Mode = 1 End EventHandler
End Control
EventHandler Sub Open() dim pic as Picture = LogoMBS(500) // needs Main Plugin data = PictureToPNGStringMBS(pic, 0.0) // This example will test loading of damaged PNGs by cutting away bytes and loading them End EventHandler
Property data As string
Property n As Integer
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
End Project

See also:

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


The biggest plugin in space...