Export (0) Print
Expand All

IWICImagingFactory::CreateQueryWriterFromReader method

Creates a new instance of a query writer based on the given query reader. The query writer will be pre-populated with metadata from the query reader.

Syntax


HRESULT CreateQueryWriterFromReader(
  [in]   IWICMetadataQueryReader *pIQueryReader,
  [in]   const GUID *pguidVendor,
  [out]  IWICMetadataQueryWriter **ppIQueryWriter
);

Parameters

pIQueryReader [in]

Type: IWICMetadataQueryReader*

The IWICMetadataQueryReader to create the IWICMetadataQueryWriter from.

pguidVendor [in]

Type: const GUID*

The GUID for the preferred metadata writer vendor. Use NULL if no preferred vendor.

ppIQueryWriter [out]

Type: IWICMetadataQueryWriter**

When this method returns, contains a pointer to a new metadata writer.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Wincodec.h

IDL

Wincodec.idl

Library

Windowscodecs.lib

DLL

Windowscodecs.dll

See also

IWICImagingFactory
Conceptual
WIC Metadata Overview
Metadata Query Language Overview
Overview of Reading and Writing Image Metadata

 

 

Community Additions

ADD
Show:
© 2014 Microsoft