Changes BlendingMode.(KMSTRIPHEAD Structure)

Prototype declaration:


KMSTATUS KMAPI
kmChangeStripBlendingMode(
        IN OUT  PKMSTRIPHEAD    pStripHead,
        IN      KMINT32         nParam,
        IN      KMBLENDINGMODE  nSRCBlendingMode,
        IN      KMBLENDINGMODE  nDSTBlendingMode
);

Description:

This function changes BlendingMode in a KMSTRIPHEAD structure that was constructed by
kmGenerateStripHead/kmGenerateStripHeadXX (00 to 16).
The following is a list of supported VertexType:

VertexType00 VertexType06 VertexType12
VertexType01 VertexType07 VertexType13
VertexType02 VertexType08 VertexType14
VertexType03 VertexType09 VertexType15
VertexType04 VertexType10 VertexType16
VertexType05 VertexType11 VertexType17
: KM_IMAGE_PARAM1 / KM_IMAGE_PARAM2 can be used. : Only KM_IMAGE_PARAM1 can be used.
Parameters:
pStripHead(input/output)
        This parameter is a pointer to KMSTRIPHEAD.

nParam(input)
        This parameter specifies the parameter for update.
            KM_IMAGE_PARAM1     parameter 1
            KM_IMAGE_PARAM2     parameter 2

nSRCBlendingMode(input)
nDSTBlendingMode(input)
        This parameter specifies the BlendingMode setting.
            KM_BOTHINVSRCALPHA
            KM_BOTHSRCALPHA
            KM_DESTALPHA
            KM_DESTCOLOR
            KM_INVDESTALPHA
            KM_INVDESTCOLOR
            KM_INVSRCALPHA
            KM_INVSRCCOLOR
            KM_SRCALPHA
            KM_SRCCOLOR
            KM_ONE
            KM_ZERO

Return values:
Value Explanation
KMSTATUS_SUCCESS Success
KMSTATUS_INVALID_VERTEX_TYPE This setting is invalid at the current VertexType.