Initializes the recorder and sets the file that will hold the record data. Dir / FileName - The audio will be written to this file. Existing file will be deleted. SampleRate - Sample rate in Hz. Common values: 44100, 22050 and 11025. Mono - True for one channel false for two channels. Encoding - 8 bit or 16 bit encoding. MPEG4 - Whether to use MPEG4 encoding or linear PCM.
Shows the photo library dialog. This dialog allows the user to select an image or movie from the device photo library. The Complete event will be raised. FromView - Relevant for iPad only. The dialog arrow will point to this view or BarButton. MediaType - One of the TYPE constants.
Shows the saved photos dialog. This dialog allows the user to select an image or movie from the device camera roll album. The Complete event will be raised. FromView - Relevant for iPad only. The dialog arrow will point to this view or BarButton. MediaType - One of the TYPE constants.
TakePicture
Shows the camera dialog. The camera will be set in image mode. Make sure to handle the Complete event
TakeVideo
Shows the camera dialog. The camera will be set in video mode. Make sure to handle the Complete event
Provides low level access to the camera. This object allows you to embed the camera features inside your layout and provides more control over the camera settings. You can also work with the preview frames directly.
Events:
PictureTaken (Data() As Byte) Preview (Image As Bitmap)
Initializes the camera. Panel - The preview panel. EventName - Sets the subs that will handle the events. FrontCamera - If true then the front camera will be used (if a front camera is available).
IsInitializedAsBoolean
PreserveRatioAsBoolean
Gets or sets whether the preview image fills the panel (false) or the picture ratio is preserved.
PresetAsString
Gets or sets the preset mode. The value should be one of the PRESET constants.
PRESET_1280x720AsString [read only]
PRESET_1920x1080AsString [read only]
PRESET_352x288AsString [read only]
PRESET_640x480AsString [read only]
PRESET_HIGHAsString [read only]
PRESET_LOWAsString [read only]
PRESET_MEDIUMAsString [read only]
PRESET_PHOTOAsString [read only]
ReleaseFrame (bmpAsBitmap)
This method should be called at the end of the Preview event with the bitmap passed as a parameter (only required if you are handling this event).
Resize
This method should be called whenever the preview panel is resized or the orientation changes.
StartPreview
Starts the data flow from the camera.
StopPreview
Stops the data flow.
TakePicture
Takes a picture. The PictureTaken event will be raised. Note that this method does not stop the data flow (like in B4A).
TORCH_AUTOAsInt [read only]
TORCH_OFFAsInt [read only]
TORCH_ONAsInt [read only]
TorchModeAsInt
Gets or sets the torch mode. The value should be one of the TORCH constants. You can only set this property inside a configuration block.
ZoomAsFloat
Gets or sets the zoom factor. The value should be between 1 to ZOOM_MAX. You can only set this property inside a configuration block.