Platforms to show: All Mac Windows Linux Cross-Platform

Back to IKPictureTakerMBS class.

IKPictureTakerMBS.AllowsEditing as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether editing is allowed or not.

(Read and Write computed property)

Some examples using this property:

IKPictureTakerMBS.AllowsFileChoosing as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether choosing a file is allowed or not.

(Read and Write computed property)

Some examples using this property:

IKPictureTakerMBS.AllowsVideoCapture as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether video capture is allowed or not.

(Read and Write computed property)

Some examples using this property:

IKPictureTakerMBS.Available as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the picture taker is available on that platform or not.
Example
dim n as Integer

dim p as new IKPictureTakerMBS

if not p.Available then
MsgBox "This application requires Mac OS X 10.5 and a Macho Target"
Return
end if

True on Mac OS X 10.5.

IKPictureTakerMBS.beginPictureTaker as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Launch the PictureTaker.
Example
dim p as IKPictureTakerMBS // your picture taker

if not p.beginPictureTaker then
MsgBox "Can't show picture taker!?"
end if

You will later receive an event for the case the user clicks on OK or Cancel buttons.
Returns true on success and false on failure.

Some examples using this method:

IKPictureTakerMBS.beginPictureTakerSheet(parent as DesktopWindow) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Opens a picture taker as a sheet whose parent is the specified window.

parent: The parent window of the picture taker sheet.

You will later receive an event for the case the user clicks on OK or Cancel buttons.

Available in Mac OS X v10.5 and later.

See also:

IKPictureTakerMBS.beginPictureTakerSheet(parent as NSWindowMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Opens a picture taker as a sheet whose parent is the specified window.

parent: The parent window of the picture taker sheet.

You will later receive an event for the case the user clicks on OK or Cancel buttons.

Available in Mac OS X v10.5 and later.

See also:

IKPictureTakerMBS.beginPictureTakerSheet(parent as window) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Opens a picture taker as a sheet whose parent is the specified window.

parent: The parent window of the picture taker sheet.

You will later receive an event for the case the user clicks on OK or Cancel buttons.

Available in Mac OS X v10.5 and later.

See also:

IKPictureTakerMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The constructor to create a new picture taker panel.

IKPictureTakerMBS.CropAreaSizeHeight as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The height of the crop area.

IKPictureTakerMBS.CropAreaSizeWidth as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The width of the crop area.

IKPictureTakerMBS.InformationalText as NSAttributedStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The information text as a plain string.

On getting the value the plugin will check whether the value is a formatted or a plain text. if it is a plain text, it will return the plain text as a NSAttributedStringMBS.
(Read and Write computed property)

See also:

Some examples using this property:

IKPictureTakerMBS.InformationalText as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The information text as a plain string.
Example
dim p as IKPictureTakerMBS // your picture taker
p.InformationalText="Please take a picture"

On getting the value the plugin will check whether the value is a formatted or a plain text. if it is a formatted text, it will return the formatted text as plain text.
(Read and Write computed property)

See also:

IKPictureTakerMBS.inputImage as NSImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The input image.

The input image is never modified by the PictureTaker.
(Read and Write computed property)

IKPictureTakerMBS.mirroring as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
True if video mirroring is enabled, false otherwise.

Controls whether the receiver enable/disable video mirroring durring snapshots (default is true).
(Read and Write computed property)

IKPictureTakerMBS.outputImage as NSImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Return the edited image.

IKPictureTakerMBS.OutputImageMaxSizeKeyHeight as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The maximum height of the output image.

IKPictureTakerMBS.OutputImageMaxSizeKeyWidth as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The maximum width of the output image.

IKPictureTakerMBS.popUpRecentsMenuForView(parent as NSViewMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Displays the Open Recent popup menu associated with the picture taker.

You will later receive an event for the case the user clicks on OK or Cancel buttons.

Available in Mac OS X v10.5 and later.

IKPictureTakerMBS.RemainOpenAfterValidate as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property ImageKit MBS AVFoundation Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the picture taker reamins open.

Requires Mac OS X 10.6.
(Read and Write computed property)

IKPictureTakerMBS.runModal as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Launches a modal PictureTaker session.
Example
dim p as IKPictureTakerMBS // global property
dim n as Integer

p=new IKPictureTakerMBS

if not p.Available then
MsgBox "This application requires Mac OS X 10.5 and a Macho Target"
Return
end if

p.AllowsFileChoosing=true
p.AllowsEditing=true
p.AllowsVideoCapture=true
p.ShowEffects=FALSE // disable if you run modal!
p.ShowRecentPicture=true
p.UpdateRecentPicture=true
p.InformationalText="Please take a picture"

n=p.runModal

if n=1 then // ok
Backdrop=p.outputImage.CopyPictureWithMask
else
Title=Str(n)
end if

Returns NSOKButton (1) if the user edits or chooses an image and confirm panel, NSCancelButton (0) if the user canceled or didn't change the image.

You may want to disable effects as they won't work in Xojo in a modal picture taker dialog.

IKPictureTakerMBS.SetCropAreaSize(width as Double, height as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets the crop area.

IKPictureTakerMBS.SetOutputImageMaxSize(width as Double, height as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets the maximum output image size.

IKPictureTakerMBS.ShowAddressBookPicture as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the addressbook picture is shown or not.

(Read and Write computed property)

Some examples using this property:

IKPictureTakerMBS.ShowEffects as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether effects are shown or not.

(Read and Write computed property)

Some examples using this property:

IKPictureTakerMBS.ShowEmptyPicture as NSImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property ImageKit MBS AVFoundation Plugin 13.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The image to use for an empty image.

(Read and Write computed property)

Some examples using this property:

IKPictureTakerMBS.ShowRecentPicture as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether recent pictures should be shown.

(Read and Write computed property)

Some examples using this property:

IKPictureTakerMBS.UpdateRecentPicture as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property ImageKit MBS AVFoundation Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether recent pictures should be updated.

(Read and Write computed property)

Some examples using this property:

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


The biggest plugin in space...