# Image Compression \[C#\]

**URL:** <https://forum.kirupa.com/t/image-compression-c/250509>\
**Category:** programming\
**Created:** [January 30, 2008, 3:26am UTC](https://forum.kirupa.com/t/image-compression-c/250509 "2008-01-30T03:26:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gigahertz205](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@gigahertz205](https://forum.kirupa.com/u/gigahertz205)\
**Post date:** [January 30, 2008, 3:26am UTC](https://forum.kirupa.com/t/image-compression-c/250509/1 "2008-01-30T03:26:10Z")

</div>

So I’m trying to create an image compression program using binary partitioning, but I really have no idea. Instead of trying to find a program to do that, I just want to see how an image would be compressed using standard lossy JPEG (using DCT).

My problem is that I cannot find source code, or atleast for C#, of an image compression program using JPEG. I mean I tried C++ source code, but I had no idea how to read it (I dont know any C++). Does anyone know such source code, or at least help me get this thing started?

I just need to know how to work with images with programming as I dont have any experience in it. EX: JPEG divides the image into 8x8 blocks, apply transformation, etc, but I have no idea how I’m supposed to divide an image and do mathematical transformations to those blocks.

Any idea, or comment is appreciated.
