Android Question seeking to reduce the size of a picture

Discussion in 'Android Questions' started by mvera, Aug 21, 2015.

  1. mvera

    mvera Active Member Licensed User

    hello, continued looking redice one jpg picture, now enconte the following library

    http://www.b4x.com/android/forum/threads/advanced-camera-library-v1-00.9383/

    but remained unable to lower the weight of a photo that is about 2m

    Code:
    Sub Camera1_PictureTaken (Data () As Byte)
       
         camera1.PictureSize (
    10,10'add this
         camera1.Quality = 50 'add this
         camera1.StartPreview
         
    Dim out As OutputStream

         
    File.OpenOutput out = (File.DirRootExternal, "Image.jpg"False)
         out.WriteBytes (Data 
    0, Data.Length)
         out.Close
         
    ToastMessageShow ("Image saved:" & File.Combine (File.DirRootExternal, "Image.jpg"), True)

       
    End Sub
    [/ code]

    But add camera1.PictureSize 
    and camera1.Quality I do not see any change in the size of the photo.

    Thank you.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    As I previously wrote you should use CameraEx class.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice