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
0
votes
0 answers

Are there any intuitive ways to debug custom WIC codecs?

I have been attempting to set up a custom WIC codec using various different templates from GitHub. After successfully compiling and registering the new codecs as well as updating the registries, I have found that it is still impossible to open any…
0
votes
1 answer

D2D1 failed initializing Imaging factory

I am new to d2d1, and tried to use LoadImageFromFile function from msdn to load mitmap, it need as one of it arguments pointer to IWICImagingFactory, because i need to pass it into the function, it must be initialized ant can`t be NULL, how to…
Olexy
  • 324
  • 1
  • 9
0
votes
1 answer

WIC factory will always be nullptr on windows7 (used "What's a Creel?" tutorial)

I used this tutorial and i always got an error that says "wicFactory was nullptr". I'm using windows 7 and this code doesn't make it work. I've read that you should use CLSID_WICImagingfactory1 But it doesn't work. this is my code: HRESULT hr; bmp =…
Itay
  • 17
  • 2
0
votes
0 answers

Wic Bitmap from raw bytes

My sequencer includes support for video, so I want to display bitmaps in the editor. The idea is to have a WIC bitmap, process it with some filters and then render it with Direct2D. When I load the WIC bitmap from an image, everything is good. I use…
Michael Chourdakis
  • 10,345
  • 3
  • 42
  • 78
0
votes
1 answer

WIC - Exif Metadata Query - How to get image description

I have an image that has some French characters in the "Image Description" exif metadata field. I m doing this (where reader is a IWICMetadataQueryReader* and value a PROPVARIANT): reader->GetMetadataByName(L"/app1/ifd/{ushort=270}", &value); if…
fred_
  • 1,486
  • 1
  • 19
  • 31
0
votes
1 answer

C# not able to combine multiple images to one with width more than 65000 and height 1800 i.e(65000 pixels width *1800 pixels height)

I'm trying to combine multiple images into one in c# using Bitmap ,my image width is 5000 and height is 1800 (which is constant) as per my code I'm able to combine upto 12 images (the total width will be 60000 and 1800 height).I have total 68 images…
anup.p
  • 39
  • 1
  • 4
0
votes
0 answers

How do I create a PNG-formatted byte array from an ID3D11Texture2D without saving/loading a file?

I have an ID3D11Texture2D. The end goal is to take the image and embed it into html as a base64 encoded string (requirements are based on existing functionality of which I have no control). I can achieve this by saving the texture to file using…
EindacorDS
  • 107
  • 1
  • 3
  • 11
0
votes
1 answer

Using WIC to reproduce WPF BitmapImage.DecodePixelWidth / Height

I need to generate thumbnails of "huge" image files without loading the full image in memory. This feature is perfectly implemented in WPF's BitmapImage.DecodePixelWidth / Height but i need to use it in a non-managed C++ dll. I "think" it is…
0
votes
0 answers

How to invert colors of an image using the Windows Imaging Component?

How can I invert the colors in an image using the Windows Imaging Component? I want to make white pixels black and black pixels white using the WIC. I tried using IWICBitmapDecoder::CopyPalette and IWICPalette::GetColors to retrieve the colors and…
rij
  • 1
0
votes
1 answer

Decoding image from stream using WIC

I'm trying to use WIC to load images in C#, with SharpDX as a wrapper (this is a Direct2D application written in .NET). I can load my image perfectly fine by creating a BitmapDecoder like so: C# Code: new BitmapDecoder(Factory, fileName,…
laptou
  • 6,389
  • 2
  • 28
  • 59
0
votes
1 answer

How to get all frames of an animated GIF using TWICImage?

I'm working with Embarcadero RAD Studio XE7. In this context, I'm interested to use the Windows Imaging Component (WIC) library to read and show the content of an animated GIF image. I saw that the VCL provides a TWICImage component, which with I'm…
Jean-Milost Reymond
  • 1,833
  • 1
  • 15
  • 36
0
votes
1 answer

How create WIC ImageFactory (a COM object) from C#?

This is one step in the actual goal, which is mixing Direct2D with GDI from managed code, to update a legacy Windows Form app, that runs on .NET Framework 3.5 (migrating to newer .NET not practical at this time). See How initialize Direct2D renderer…
ToolmakerSteve
  • 18,547
  • 14
  • 94
  • 196
0
votes
1 answer

Crash of BitmapDecoder when processing DDS files

I wanted to test my application on the computer of a friend to check, if my work on runs on other peoples' machine. (Do I have included all libraries? Etc.) However, my application crashes when I load *.dds textures. I use them in the 2D background…
GameDevAlien
  • 195
  • 1
  • 17
0
votes
1 answer

GPU memory using CreateBitmapFromWicBitmap()

When using CreateBitmapFromWicBitmap() I can see the GPU memory usage increase. The code looks like: hr = pRenderTarget->CreateBitmapFromWicBitmap(pImagePoolEntry->pConverter, NULL, pImagePoolEntry->pPoolImage.GetAddressOf()); pPoolImage is…
Tony Teveris
  • 165
  • 10
0
votes
1 answer

Reading Clipboard with WIC

I'm trying to write a function to read images copied to the clipboard with Windows Imaging Component. Currently my code is based off how I load resources but modified to work with the clipboard. everything up to initializing the stream works fine…
trigger_death
  • 105
  • 1
  • 13