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
1 answer

WIC use specific codec

I am working on the task to convert raw files from cameras like Canon and Nikon with WIC to tiff format. I found examples on creating an WIC factory object using the filename. //Create a WIC…
DermotA
  • 3
  • 2
0
votes
1 answer

What is the equivlent WIC version for this bitmap manipulating routine?

We have some bitmap images which actually in RAW format but it uses a windows bitmap format, however if not using the camera provided lib to decode it you cannot have a good result. The following is the code that works fine: public static Bitmap…
Earth Engine
  • 10,048
  • 5
  • 48
  • 78
0
votes
3 answers

How to unlock a locked bitmap

I want to unlock a locked ID2D1Bitmap I have tried m_pBitmap1->Release(); but it doesn't seem to work hr=m_pBitmap1->CopyFromRenderTarget(nullptr, m_pRenderTarget2, nullptr); gives an access violation error: "Unhandled exception at 0x00fb2a46 in…
0
votes
1 answer

Image metadata Keywords not recognized by Windows XP

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…
muruge
  • 4,083
  • 3
  • 38
  • 45
0
votes
1 answer

Encode QImage to png using WIC?

I am trying to test the performance between WIC and the encode function from QT. But I can not find a way to encode from a QImage (QT object) to PNG using WIC. Encoder from WIC need to be initialized from IStream, which should provide same data as…
cHiWa
  • 383
  • 1
  • 3
  • 14
0
votes
1 answer

Unexpected rowpitch from WIC texture to DX11 texture

I am confused as to why I am getting 128 bytes for scan-lines/rowpitch rather than the 8 I am specifying. The BMP in question being loaded is 4 pixels, red top left, green top right, blue bottom left, yellow bottom right. Code is as…
r m
  • 177
  • 13
0
votes
2 answers

Image size is drastically increasing after applying a simple watermark

I've a set of images that I'm programmatically drawing a simple watermark on them using System.Windows and System.Windows.Media.Imaging (yes, not with GDI+) by following a tutorial in here. Most of the images are not more than 500Kb, but after…
user3332579
  • 3,111
  • 3
  • 17
  • 21
0
votes
1 answer

How to WIC Encode a D2D bitmap to png

At the moment I'm programming a paint app in WPF C# and have a problem. I want to draw different shapes and save them as a png/bmp. So right now I'm decoding a bmp to a direct2d bitmap to draw on rendertarget. But my problem is that I don`t know how…
user3000289
0
votes
0 answers

Why the bitmap created by CreateBitmapFromDxgiSurface not match with my draw operation?

As we know, we can use WriteFrame to save bitmap to file in wic. Here in the method WriteFrame,we can see a parameter ID2D1Bitmap object.When I use m_d2dContext->CreateBitmapFromDxgiSurface(surface.Get(),&bitmapProperties,&myBitmap); and then pass…
Bos
  • 365
  • 2
  • 13
0
votes
3 answers

How do I interpret HRESULT -2003292276?

How do I interpret HRESULT -2003292276? This is returned by calling IWICFactory factory->CreateBitmapFromMemory(): hr = m_factory->CreateBitmapFromMemory( m_format.imageWidthPels, m_format.imageHeightPels, GUID_WICPixelFormat32bppBGR, …
0
votes
1 answer

loading file without whole path visual studios 2012

I am writing a program in Visual Studio 2012. I am using Windows Imaging component I want to put image files for my program to use without them being resources. I want to make them download with the program when someone downloads it. So my problem…
0
votes
2 answers

Convert from HBITMAP to IWICBitmap

I'm trying to convert an HBITMAP to an IWICBitmap, and I'm having quite a bit of trouble. I found the function: CreateBitmapFromHBITMAP(); but I can't get it to work. Here is how I am using it: void camera_avtcam_ex_t::GrabAsyncFrame(ULONG…
xcdemon05
  • 1,372
  • 5
  • 25
  • 49
0
votes
1 answer

How to save the content of a ID2D1RenderTarget to a file

I have an existing component that draws Direct2D content to an ID2D1RenderTarget and I would like to save that drawing to an image file. The questions here, here and here, although they helped me, did not provide a clear answer as how to do it. My…
Papaya
  • 332
  • 3
  • 15
0
votes
2 answers

What is right include for Image CLI class

I cannot find rigth namespace of that Image^ class I use CLI. It is from http://msdn.microsoft.com/en-us/library/aa970689.aspx that site. The problem is that microsoft does not publicated what I suppose to import, so I even do not know what class…
Yoda
  • 17,363
  • 67
  • 204
  • 344
0
votes
1 answer

WIC WINCODEC_ERR_BADHEADER only for JPEG images

I have a simple encoding/ decoding application using Windows Imaging Component API. The issue I'm having is that when I use either the JPEGXR or BMP formats, everything works fine. However, when I use the JPEG codec - the encoder works fine and I…
Sau
  • 326
  • 2
  • 15
1 2 3
11
12