Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/Picture/X Face example
Function:
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/X Face example
This example is the version from Sun, 10th Dec 2016.
Project "X Face example.rbp"
Class Window1 Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control StaticText2 Inherits Label
ControlInstance StaticText2 Inherits Label
End Control
EventHandler Sub Open() dim s as String dim p as Picture dim q as Picture // The Apple Logo I use for myself: s="nrf3>{WQ6c&r+7@e)""]0G60`-6ND^)I2mI%>)QGYa=9""=7jhd-g2|b3!>Al0+Ccb%xGQshhi|g@QU2$" // make a picture p=PictureFromXFaceStringMBS(s) // make back the string s=XFaceStringFromPictureMBS(p) // show the string StaticText1.text=s // make the picture p=PictureFromXFaceStringMBS(s) // if the picture now shows it's good if p<>nil then // Let's make it transparent q = new Picture(48,48,32) q.Graphics.DrawPicture p,0,0 q.mask.Graphics.DrawPicture p,0,0 Backdrop=q else MsgBox "Some error!?" 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
End Class
End Project

Feedback, Comments & Corrections

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





Links
MBS Xojo Plugins