Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Bitmap to jpg in memory?

Bitmap to jpg in memory?

Scheduled Pinned Locked Moved Visual Basic
graphicsperformancequestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DK KiloDunse
    wrote on last edited by
    #1

    Hi. Is it possible to convert a bitmap held in memory to jpg, also held in memory?

    R 1 Reply Last reply
    0
    • D DK KiloDunse

      Hi. Is it possible to convert a bitmap held in memory to jpg, also held in memory?

      R Offline
      R Offline
      Ritesh1234
      wrote on last edited by
      #2

      Hi, I assume ur bitmap is in form of array of bytes in that case u can convert it to jpg using............... Dim wstWriter1 As New FileStream("c:\abc.jpg", FileMode.Create) Dim bwWriter As New BinaryWriter(wstWriter1) bwWriter.Write(pi_arrbyteFiles) bw.close() wstWriter1.close() I hope this is what u want......................:-> regards, Ritesh

      D 1 Reply Last reply
      0
      • R Ritesh1234

        Hi, I assume ur bitmap is in form of array of bytes in that case u can convert it to jpg using............... Dim wstWriter1 As New FileStream("c:\abc.jpg", FileMode.Create) Dim bwWriter As New BinaryWriter(wstWriter1) bwWriter.Write(pi_arrbyteFiles) bw.close() wstWriter1.close() I hope this is what u want......................:-> regards, Ritesh

        D Offline
        D Offline
        DK KiloDunse
        wrote on last edited by
        #3

        Well not exactly…. I have bitmap in memory (byte array) Now… I want to convert the bytes (the bitmap) to a jpg picture, without saving it to disk first. Like using a codec

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups