Home COM GDI+ WebBrowser Data Access

IDXTScaleOutput Interface

 

IID_IDXTScaleOutput

{B2024B50-EE77-11D1-9066-00C04FD9189D}

 

 

The IDXTScaleOutput interface is an optional interface supported by certain image transforms. It enables you to scale transform output to a specified size. It is typically supported by zero input image transforms, such as the Gradient sample included with the software development kit (SDK).

 

Remarks

If a transform supports this interface, the output is scaled when the transform's IDXTransform::Execute method is called. This saves you the extra step of creating an IDXTScale interface to scale the output of the first transform.

To use this interface, create an instance of an IDXTScaleOutput Component Object Model (COM) pointer and call QueryInterface on the transform as shown in the following code example.

CComPtr<IDXTScaleOutput> cpTScaleOutput;
...
hr = cpTrans->QueryInterface( IID_IDXTScaleOutput, (void**) &cpTScaleOutput );

You can then use the returned pointer to access the IDXTScaleOutput interface method.

This interface inherits from the IUnknown interface.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IDXTScaleOutput Members

Description

SetOutputSize

Sets the size of the scaled transform output.

   

SetOutputSize

 

FUNCTION IDXTScaleOutput_SetOutputSize ( _
  BYVAL
pthis AS DWORD PTR _

, BYVAL OutSize AS apiSIZE _

, BYVAL bMaintainAspect AS LONG _

  ) AS LONG

  LOCAL
HRESULT AS LONG
  CALL DWORD
@@pthis[3] USING IDXTScaleOutput_SetOutputSize (pthis, OutSize, bMaintainAspect) TO HRESULT
  FUNCTION =
HRESULT

END FUNCTION
 

 

Page last updated on Monday, 03 April 2006 19:51:11 +0200