iOS Question RESIZE IMAGE

kreativa

Member
Licensed User
Longtime User
Hi,
i need a help!
I write a app that saves images from camera pictures on file.dirdocuments, but the images are 8mb size.
How i can do to modify size and create pictures with 100kb size?
I try to use outputstream to modify the quality from 100 to 1 but the image size is the same!

here's the code
ImageView1.Bitmap = Image
Dim Out As OutputStream
Out = File.OpenOutput(File.DirDocuments, "mybcimage.jpg", False )
ImageView1.bitmap.WriteToStream(Out, 1 , "jpg")
Out.Close

How i can do? Please help!
 
Top