Example: /Images/JPEG/JPEG Transform

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

/Images/JPEG/JPEG Transform


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

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

This example is the version from Thu, 6th Apr 2016.

Project "JPEG Transform.xojo_binary_project"
FileTypes
Filetype text
End FileTypes
Class Window1 Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
EventHandler Sub Open() dim j as JPEGTransformationMBS j=new JPEGTransformationMBS j.InputFile=SpecialFolder.Desktop.Child("test.jpg") j.OutputFile=SpecialFolder.Desktop.Child("test rotated.jpg") j.Rotate90=true j.Progressive=true if j.Transform then MsgBox "ok" else MsgBox "fail" end if End EventHandler
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
EventHandler Sub Open() // make test image file dim f as FolderItem = SpecialFolder.Desktop.Child("test.jpg") if not f.Exists then dim p as Picture = LogoMBS(500) call f.SaveAsJPEGMBS(p, 90) end if End EventHandler
End Class
End Project

See also:

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


💬 Ask a question or report a problem