rotate image from cam and save

stefanoa

Active Member
Licensed User
Longtime User
i have this code to take a photo from cam (with ACL - Advanced Camera Library)
how can i rotate of 90°???

Sub PhotoButton_Click
PhotoButton.Enabled = False
objCamera.TakePicture '--- take photo (not TakePicture2 because too big...)
End Sub

 

birnesoft

Active Member
Licensed User
Longtime User
Solution to rotate the Foto from Camera

The best way I found,
first scale it to a square of picturewidth^2, (if not you get crazy :sign0135
rotate it and scale it down to the new size.


for this you need the Reflection lib.

good trying

Björn >-D)X
 
Last edited:
Upvote 0

Yeshua

Member
Licensed User
Longtime User
Rotate and resize.

Sub CameraY_PictureTaken(Data() As Byte)
CameraY.StartPreview
CameraY.FlashOff
Dim out As OutputStream
out = File.OpenOutput(File.DirRootExternal, "Image.bmp", False)
out.WriteBytes(Data, 0, Data.Length)
out.Close
ToastMessageShow("Image saved: " & File.Combine(File.DirRootExternal, "Image.bmp"), True)
:sign0085:
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…