VBFrontCam (Front Camera Library) 1.3
Releasing VBFrontCam 2.0
Also includes:
EFFECTS: None, Sepia, Black and White
ZOOM: zoomin(int as level)
EXPOSURE: Compensation Boosts
( I Find is needed on front cams since they seem darker )
Some phones won't support effects, zoom, or Exposure,
but it's there if you need it.
Attached is an example program, please test and give feedback.
Thanks in Advance
Vb1992
Library Revision History:
old...... Library is version 1.0 - June 16th, 2012
old...... Library is version 1.1 - June 18th, 2012 (Fixed library to deal with tablets with only 1 camera) (added zoom in level parameter)
old...... Library is version 1.2 - June 18th, 2012 (Fixed library to deal with front cameras before pre-gingerbread 2.3) Camera.Older2b
old...... Library is version 1.3 - June 23rd, 2012 (Fixed library to deal with rotations) Rotate90() Rotate180() Rotate270()
Current Library is version 2.0 - August 1st, 2012 (Fixed library to deal with front camera on Samsung and ICS)
.
.
.
.
.
.
Releasing VBFrontCam 2.0
- CameraFront
Events:- Ready (Success As Boolean)
- PictureTaken (Data) As Byte)
- android.permission.CAMERA
- CameraCount As Int
returns an int of how many cameras you have example: 0,1,2 - Initialize (Panel As ViewGroup, EventName As String)
Initializes the camera.
Panel - The preview images will be displayed on the panel.
EventName - Events subs prefix.
The Ready event will be raised when the camera has finished opening. - Older1a
Try front camera on Android version 2.2 and under
Behind the scenes we use: p.set("camera-id", 1); - Older1b
Try front camera on Android version 2.2 and under
Behind the scenes we use: p.set("camera_id", 1); - Older2a
Try front camera on Android version 2.2 and under
Behind the scenes we use: p.set("camera_id", 2); - Older2b
Try front camera on Android version 2.2 and under
Behind the scenes we use: p.set("camera-id", 2); - Release
Releases the camera object and allows other processes to access the camera. - Rotate180
rotates 180 - Rotate270
rotates 270 - Rotate90
rotates 90 - SetBlackWhite
SetBlackWhite - SetEffectNone
Set Effects Color back to normal - SetExposureStong2
Front camera is a little dark, so this helps
Boost Exposure Level to 2, should work on most phones - SetExposureStong4
Front camera is a little dark, so this helps
Boost Exposure Level to 4, might not work on all phones - SetExposureStong6
Front camera is a little dark, so this helps
Boost Exposure Level to 6, might not work on all phones - SetSepia
EFFECT_SEPIA - SetZoomIn (zlevel As Int)
SetZoomIn() No need to pass it anything - SetZoomOut
SetZoomOut() No need to pass it anything - StartPreview
Starts displaying the preview images. - StopPreview
Stops displaying the preview images. - TakePicture
Takes a picture. When the picture is ready, the PictureTaken event will be raised.
The preview images are stopped after calling this method. You can call StartPreview to restart the preview images.
Also includes:
EFFECTS: None, Sepia, Black and White
ZOOM: zoomin(int as level)
EXPOSURE: Compensation Boosts
( I Find is needed on front cams since they seem darker )
Some phones won't support effects, zoom, or Exposure,
but it's there if you need it.
Attached is an example program, please test and give feedback.
Thanks in Advance
Vb1992
Library Revision History:
old...... Library is version 1.0 - June 16th, 2012
old...... Library is version 1.1 - June 18th, 2012 (Fixed library to deal with tablets with only 1 camera) (added zoom in level parameter)
old...... Library is version 1.2 - June 18th, 2012 (Fixed library to deal with front cameras before pre-gingerbread 2.3) Camera.Older2b
old...... Library is version 1.3 - June 23rd, 2012 (Fixed library to deal with rotations) Rotate90() Rotate180() Rotate270()
Current Library is version 2.0 - August 1st, 2012 (Fixed library to deal with front camera on Samsung and ICS)
.
.
.
.
.
.
Attachments
Last edited: