Android Question BitmapExtended save jpg file

Discussion in 'Android Questions' started by hub73, Mar 14, 2016.

  1. hub73

    hub73 Member Licensed User

    Hi !

    i need some help to use BitMapExtended...
    Could you post some code sample to show me how to save the final file...
    ... i've a 0 bytes final.jpg file !
    many thanks !

    Code:
    Dim BitMap_Source As Bitmap
    Dim BitMap_Travail As BitmapExtended

    ...

    Out = 
    File.OpenOutput (Chemin_clef, "final.jpg"False)
    BitMap_Source = 
    LoadBitmapSample(Chemin_clef, "initial.jpg"1280,1280)
    BitMap_Source = BitMap_Travail.rotateBitmap (BitMap_Source, 
    90)
    BitMap_Travail.compress (BitMap_Source, 
    "JPEG"100, Out)
    Out.Close
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can save images with:
    Code:
    YourBitmap.WriteToStream(out, 100"JPEG")
    out.Close
     
  3. hub73

    hub73 Member Licensed User

    Thanks !
     
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