Platforms to show: All Mac Windows Linux Cross-Platform

/Picture/Picture.CopyPixelsFastMBS


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

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

This example is the version from Sun, 10th Dec 2016.

Project "Picture.CopyPixelsFastMBS.xojo_binary_project"
FileTypes
Filetype text
End FileTypes
Class Window1 Inherits Window
EventHandler Function MouseDown(X As Integer, Y As Integer) As Boolean p.Graphics.ForeColor=&cFFFFFF p.Graphics.FillRect 0,0,p.Width,p.Height if p.CopyPixelFastMBS(logo, x-logo.Width/2, y-logo.Height/2, 0, 0, logo.Width, logo.Height) then ' ok else beep end if Backdrop=p Return true End EventHandler
EventHandler Sub Open() logo=LogoMBS(500) p = new Picture(800,800,32) Backdrop=p End EventHandler
Property Protected logo As picture
Property Protected p As picture
End Class
MenuBar MenuBar1
MenuItem UntitledMenu1 = ""
MenuItem FileMenu = "&File"
MenuItem FileQuit = "Quit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem UntitledMenu0 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class
End Project

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


The biggest plugin in space...