wic

How do I redistribute Windows Imaging Component with .NET Framework 2.0?

I have a .NET Framework 2.0 app and would like to use the Windows Imaging Component. Since my application is a WinForms app and will be redistributed to users via an MSI installer I'm trying to figure out the best way to do this. I see a couple of options: 1) Skip .NET 2.0 and build on .NET 3.0 which includes the Windows Imaging Compone...

What's the relationship between WIC and GDI+?

I'm fuzzy on the relationship between Windows Imaging Component (WIC) and GDI+. I've done some work in the past that showed that, for example, WIC produces visually superior GIF encodings, but I'm surprised I don't see more people using it for image processing vs. GDI+. I know it doesn't have GDI+'s draw operations, but for encoding/de...

Windows 7: Saving as TIFF CCITT Group4 changed?

My program, that converts a multi page TIFF to PDF is not longer working under Windows 7. The program contains code that walks through the pages of the TIFF, converts each page as TIFF with CCITT Group4 compression and inserts the bitmap data in the resulting PDF file. Converting is done in the following way (c#): ImageCodecInfo tif...

.NET Framework and Gif transparency

Before Windows 7 (and the new image codecs: WIC) I used the following (very fast but dirty) method to create a Gif encoded image with white as the transparent color: MemoryStream target = new memoryStream(4096); image.Save(target, imageFormat.Gif); byte[] data = target.ToArray(); // Set transparency // Check Graphic Control Extension s...

Image metadata Keywords not recognized by Windows XP

Hi, I am using WIC (Windows Imaging Component) in my WPF application to read/write image metadata. Everything works perfect except for keywords not being recognized by Windows XP in the Summary properties tab. Vista & 7 recognizes it properly in the Tags property. I would greatly appreciate any pointers.. Murugesh. ...

Using Image Source with big images in WPF

I am working on an application that allows users to manipulate multiple images by using ItemsControl. I started running some tests and found that the app has problems displaying some big images - ie. it did not work with the high resolution (21600x10800), 20MB images from http://earthobservatory.nasa.gov/Features/BlueMarble/BlueMarble_mo...

Windows Programming: ID2D1Bitmap Interface - Getting the Bitmap Data

I've been writing my own library of functions to access some of the new Direct2D Windows libraries. In particular, I've been working on the ID2D1Bitmap interface. I wanted to write a function to return a pointer to the start of the bitmap data (for the editing of particular pixels, or custom encoding or whatever else I might wish for in ...

How to iterate all query paths within an image header namespace in WIC?

Hello All, I am using Windows Imaging Component to read/write image metadata in my WPF application. I would like to know if there is an efficient way to know if any paths exist within a namespace. For instance I would like to know if any paths within IPTC namespace exist and if not I want to delete the namespace from the image header. ...

How to Read Pixels in WIC image

The code below (from this thread: http://stackoverflow.com/questions/2405899/how-to-use-delphi-2010s-new-wic-capability-on-canon-files) opens a WIC image into a BitMap. However, if the dynamic range of WIC pixel values is large, this code loses a lot of information, since it has to scale the wide dynamic range into the low range that a ...

How do I create a transparent bitmap with Direct2D?

I am trying to create a PNG bitmap with RGB+A info. I want to draw a rectangle on the bitmap that is semi transparent (In other words, R=255, G=255, B=255 A = 128). I am using managed code so either SlimDX or the codepack API. The most straight forward route appears to be using the codepack api and WIC so I created a WIC bitmap with: ...