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. C#
  4. Varying sliding window size(deflate ratio)

Varying sliding window size(deflate ratio)

Scheduled Pinned Locked Moved C#
csharpdotnetsalesquestion
2 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.
  • S Offline
    S Offline
    Shailesh H
    wrote on last edited by
    #1

    I have written a C#.Net application to convert any image into png image. I have basically used the call Image.Save(outputFilename, ImageFormat.Png); I get the proper png file compressed to smaller size and working fine. But my customer wants the application to allow users to modify/vary the sliding window size(deflate ratio) of the compressed png image. So I want to know if whether I can actually supply the deflate ratio to the .Net Framework and the framework compresses the image to a png file with that deflate ratio(sliding window size). Anybody can give suggestions/inputs?

    OriginalGriffO 1 Reply Last reply
    0
    • S Shailesh H

      I have written a C#.Net application to convert any image into png image. I have basically used the call Image.Save(outputFilename, ImageFormat.Png); I get the proper png file compressed to smaller size and working fine. But my customer wants the application to allow users to modify/vary the sliding window size(deflate ratio) of the compressed png image. So I want to know if whether I can actually supply the deflate ratio to the .Net Framework and the framework compresses the image to a png file with that deflate ratio(sliding window size). Anybody can give suggestions/inputs?

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      I have never tried it, but there is a different overload which may help: Image.Save Method (String, ImageCodecInfo, EncoderParameters)[^] If it can be done, it will be in the EncoderParameters somewhere.

      Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      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