Metodo ID2D1Geometry::CompareWithGeometry(ID2D1Geometry*,constD2D1_MATRIX_3X2_F&,D2D1_GEOMETRY_RELATION*) (d2d1.h)

Descrive l'intersezione tra questa geometria e la geometria specificata. Il confronto viene eseguito usando la tolleranza flat predefinita.

Sintassi

HRESULT CompareWithGeometry(
  ID2D1Geometry             *inputGeometry,
  const D2D1_MATRIX_3X2_F & inputGeometryTransform,
  D2D1_GEOMETRY_RELATION    *relation
);

Parametri

inputGeometry

Tipo: [in] ID2D1Geometry*

Geometria da testare.

inputGeometryTransform

Tipo: [in] const D2D1_MATRIX_3X2_F &

Trasformazione da applicare a inputGeometry.

relation

Tipo: [out] D2D1_GEOMETRY_RELATION*

Quando termina, la relazione contiene un puntatore a un valore che descrive come questa geometria è correlata a inputGeometry. È necessario allocare spazio di archiviazione per questo parametro.

Valore restituito

Tipo: HRESULT

Se questo metodo ha esito positivo, restituisce S_OK. In caso contrario, restituisce un codice di errore HRESULT .

Commenti

Quando si interpreta il valore della relazione restituita, è importante ricordare che il membro D2D1_GEOMETRY_RELATION_IS_CONTAINED del tipo di enumerazione D2D1_GEOMETRY_RELATION significa che questa geometria è contenuta all'interno di inputGeometry, non che questa geometria contenga inputGeometry.

Per altre informazioni su come interpretare altri valori restituiti possibili, vedere D2D1_GEOMETRY_RELATION.

Requisiti

Requisito Valore
Client minimo supportato Windows 7, Windows Vista con SP2 e Aggiornamento della piattaforma per Windows Vista [app desktop | App UWP]
Server minimo supportato Windows Server 2008 R2, Windows Server 2008 con SP2 e Platform Update per Windows Server 2008 [app desktop | App UWP]
Piattaforma di destinazione Windows
Intestazione d2d1.h
Libreria D2d1.lib
DLL D2d1.dll

Vedi anche

ID2D1Geometry