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

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

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

    File.OpenOutput out = (File.DirRootExternal, "Image.jpg"False)
         out.WriteBytes (Data 
    0, Data.Length)
    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.
  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