Questions tagged [wic]

Windows Imaging Component

The Windows Imaging Component (WIC) provides an extensible framework for working with images and image metadata. WIC makes it possible to develop image codecs and get the same platform support as standard image formats. A single, consistent set of interfaces is used for all image processing, regardless of image format, so any application using the WIC gets automatic support for new image formats as soon as the codec is installed. The extensible metadata framework makes it possible for applications to read and write their own proprietary metadata directly to image files, so the metadata never gets lost or separated from the image.

171 questions
7
votes
1 answer

Using WIC to Quickly Create Scaled Down Bitmap that honors EXIF Orientation Tag

I'm looking for the fastest way to create scaled down bitmap that honors EXIF orientation tag Ref :https://weblogs.asp.net/bleroy/the-fastest-way-to-resize-images-from-asp-net-and-it-s-more-supported-ish Currently i use the following code to create…
techno
  • 6,100
  • 16
  • 86
  • 192
7
votes
1 answer

How to pass a nil in place of a const record?

I am trying to call the WIC (Windows Imaging Component) factory method CreateEncoder: HRESULT CreateEncoder( [in] REFGUID guidContainerFormat, [in, optional] const GUID *pguidVendor, [out, retval] IWICBitmapEncoder…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
6
votes
2 answers

Replace GDI+ DrawImage with PInvoked GDI and transparent PNG's

I've created an image service in C# which takes a base layer image (JPG), layers one more more transparent PNG's (32 bit), and then outputs a final JPG image. I'm trying to squeeze every last millisecond out of this function and my code is…
Dfaussio
  • 166
  • 2
  • 9
6
votes
2 answers

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…
Jeff Stewart
  • 803
  • 1
  • 8
  • 14
5
votes
0 answers

Animated GIF support in Windows Photo Viewer?

I've been doing a bit of research to find out why Windows 7 won't support animated GIF images in the photo viewer natively. People have suggested various third-party software (AKA not the built-in windows photo viewer) to solve this shortcoming.…
athairus
  • 213
  • 1
  • 4
  • 8
4
votes
1 answer

How do I add JPEG comment (COM) to an image?

I'm trying to add a JPEG comment to an image file using WPF. Trying the following code throws me an ArgumentOutOfRangeException. Setting other properties works without problems. using (Stream read = File.OpenRead(@"my.jpeg")) { …
aKzenT
  • 7,775
  • 2
  • 36
  • 65
4
votes
1 answer

How to save ID2D1Bitmap to PNG file

I faced a problem when trying to save ID2D1Bitmap (that created from ID2D1HwndRenderTarget) to PNG File. The output image is just empty with white color. HRESULT returned from function call EndDraw() is -2003238894. Thanks for any help. Here is my…
Jacky Nguyen
  • 51
  • 1
  • 2
3
votes
0 answers

How to access Image sequence in a HEIC file ( using C#)?

I want to access Image sequence contained in a Heic Container using C#. In windows 10, the HEIF Image Extensions enables reading (HEIF) files. It is supposed to be extended to WIC to be used by developers if the previously mentioned extension is…
Asem Khen
  • 317
  • 3
  • 15
3
votes
0 answers

Is it possible to access HEIF 'Image Properties' metadata like 'ispe' and 'colr' using Windows Imaging Component?

I know from the format specifications that HEIF files have Image Properties that can denote spacial extent ('ispe'), color information ('colr'), pixel information ('pixi'), etc. Is it possible to directly access those properties using WIC? I am able…
krisfed
  • 31
  • 2
3
votes
2 answers

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…
3
votes
1 answer

Windows StretchBlt API performance

I timed a DDB drawing operation which uses multiple StretchBlt and StretchDIBits calls. And I found that, time to complete is increase/decrease proportionally to the destination window size. With 900x600 window it takes around 5ms, but with…
9dan
  • 4,222
  • 2
  • 29
  • 44
3
votes
2 answers

WIC/WPF: System.GPS.Longitude and System.GPS.Latitude always return NULL (via BitmapMetadata)

Has anyone successfully read GPS data using WPFs class BitmapMetadata which internally uses WIC (Windows Imaging Component)? I have an image where both Windows (8.1) Explorer and external tools like XnView show GPS coordinates. I try to extract…
springy76
  • 3,706
  • 2
  • 24
  • 46
3
votes
2 answers

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…
Filip Skakun
  • 31,624
  • 6
  • 74
  • 100
3
votes
3 answers

Direct2D: How to save content of ID2D1RenderTarget to an image file?

The question is very similar to this, but that one didn't get answered yet. My question is, I have a D2D DXGI RenderTarget from d2dfactory->CreateDxgiSurfaceRenderTarget(), and I want to save its content to an image file using WIC. I was just…
pmdiano
  • 33
  • 1
  • 3
3
votes
1 answer

Why using WIC in my 32 bit application fails in Windows 7 32 bit?

I have Win32 C++ sample application that uses Windows Image Component in Visual Studio Pro 2012 Update 2. I built this app for X86 and tested in Windows 7 X64 SP1 and Windows 7 X86 SP1. It works fine with the first one and it fails on the later with…
yms
  • 10,361
  • 3
  • 38
  • 68
1
2 3
11 12