Platforms to show: All Mac Windows Linux Cross-Platform
Back to Picture class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Graphics & Pictures | MBS Picture Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
A Xojo picture object may contain an icon, a bitmap, a picture handle or something else what Xojo will support as a picture in the future.
The picture editing functions of this plugin can only work with bitmap pictures and this clone function creates such pictures for you.
If a picture is a bitmap can be easily tested with the graphics property like this:
if p.graphics=nil then // if no bitmap
p = p.clonembs // make one
end if
The Cloned picture does include the mask, if one exists.
See FAQ entry "How to duplicate a picture with mask or alpha channel?" on how to duplicate with mask.
See also:
- CloneMBS(NewMask as Picture) as picture
- CloneMBS(NewMask as Picture, width as Integer, height as Integer) as picture
- CloneMBS(width as Integer, height as Integer) as picture
Some examples using this method:
Picture.CloneMBS(NewMask as Picture) as picture
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Graphics & Pictures | MBS Picture Plugin | 16.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Same as CloneMBS, but adds the mask.
See also:
- cloneMBS as picture
- CloneMBS(NewMask as Picture, width as Integer, height as Integer) as picture
- CloneMBS(width as Integer, height as Integer) as picture
Some examples using this method:
Picture.CloneMBS(NewMask as Picture, width as Integer, height as Integer) as picture
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Graphics & Pictures | MBS Picture Plugin | 16.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Same as CloneMBS, but adds the mask.
See also:
- cloneMBS as picture
- CloneMBS(NewMask as Picture) as picture
- CloneMBS(width as Integer, height as Integer) as picture
Some examples using this method:
Picture.CloneMBS(width as Integer, height as Integer) as picture
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Graphics & Pictures | MBS Picture Plugin | 7.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
A Xojo picture object may contain an icon, a bitmap, a picture handle or something else what Xojo will support as a picture in the future.
The picture editing functions of this plugin can only work with bitmap pictures and this clone function creates such pictures for you.
If a picture is a bitmap can be easily tested with the graphics property like this:
if p.graphics=nil then // if no bitmap
p=p.clonembs // make one
end if
The Cloned picture does not have a mask or alpha channel.
See FAQ entry "How to duplicate a picture with mask or alpha channel?" on how to duplicate with mask.
See also:
- cloneMBS as picture
- CloneMBS(NewMask as Picture) as picture
- CloneMBS(NewMask as Picture, width as Integer, height as Integer) as picture
Some examples using this method:
The items on this page are in the following plugins: MBS Picture Plugin.