Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS Vector C++ Class Library Help

LVectorBase::GetObjectParallelogram

Show in webframe

#include "ltwrappr.h"

virtual L_INT LVectorBase::GetObjectParallelogram(pMin, pMax, dwFlags=0)

pVECTORPOINT pMin;

/* pointer to a vector point */

pVECTORPOINT pMax;

/* pointer to a vector point */

L_UINT32 dwFlags;

/* flag that indicates which parallelogram to get*/

Gets the parallelogram that contains the specified object(s).

Parameter

Description

pMin

Pointer to a VECTORPOINT structure to be updated with the minimum point of the bounding parallelogram of the specified object.

pMax

Pointer to a VECTORPOINT structure to be updated with the maximum point of the bounding parallelogram of the specified object.

dwFlags

Flag that indicates which parallelogram to use when updating the pMin and pMax parameters. Possible values are:

 

Value

Meaning

 

0

pMin and pMax will be updated with the parallelogram containing all objects within the vector handle.

 

VECTOR_FLAGS_SELECTED_ONLY

pMin and pMax will be updated with the parallelogram containing all selected objects within the vector handle.

 

VECTOR_FLAGS_TRANSFORMED

Apply current transformation on pMin and pMax before returning.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Obtains the bounding parallelogram of a single object, several selected objects, or all objects within the vector handle.

This function is not supported in the DirectX engine.

Required DLLs and Libraries

LVKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LVectorBase::IsObjectSelected, LVectorBase::GetObjectRect

Topics:

Manipulating Objects or Vertices within a Vector Image

 

Vector Images: Obtaining Object Information

Example

//Example15
L_VOID Example15(HWND hWnd, LVectorBase *pVector)
{
   //This example obtains drawing physical extents 
   VECTORPOINT LeftTop, RightBottom;
   POINT LeftTop2D, RightBottom2D;

   // Get drawing logical extents 
   pVector->GetObjectParallelogram(&LeftTop, &RightBottom);

   // Convert to physical to get the rect where the drawing will painted 
   pVector->LogicalToPhysical(&LeftTop2D, &LeftTop );
   pVector->LogicalToPhysical( &RightBottom2D, &RightBottom );
}

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.