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. Other Discussions
  3. Article Writing
  4. export DIB to...

export DIB to...

Scheduled Pinned Locked Moved Article Writing
algorithms
2 Posts 2 Posters 2 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Can someone please post a simple class of functions which export DIB's to different widely known formats such as PNG,JPG,ect. I've spent hours searching the net and downloading different libraries for this code.

    C 1 Reply Last reply
    0
    • L Lost User

      Can someone please post a simple class of functions which export DIB's to different widely known formats such as PNG,JPG,ect. I've spent hours searching the net and downloading different libraries for this code.

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      for 24-bit DIBs, it's almost simple. unfortunately, in general, it's not simple. DIBs come in many different flavors and it's ncessary to translate the DIB to a common intermediary format (such as raw RGB) before you can give it to any of the public doman PNG, JPG, TIFF, etc. libraries. you might want to check out ImgSource : http://www.smalleranimals.com . this is a shameless plug, since i wrote it. but, at least i can claim to know what i'm talking about when i say it can handle DIB->RGB and RGB->TIFF,JPG,BMP,PNG,PCX,TGA,EMF, etc.. the source is available, so you can always figure out what it does and tailor it to suit your needs. -c

      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