CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Functions
GiViewportGeometry.h File Reference
#include "Gi/Gi.h"
#include "Gi/GiGeometry.h"
#include "TD_PackPush.h"
#include "TD_PackPop.h"

Go to the source code of this file.

Classes

class  OdGiSelfGdiDrawable
 
class  OdGiSelfGiDrawablePE
 
class  OdGiViewportGeometry
 

Functions

ODGI_EXPORT void odgiImageViewport (OdGiViewportGeometry &pGeom, const OdGiRasterImage *pImage, const OdGePoint3d *pBoundary, bool bFilter=true, double brightness=50.0, double contrast=50.0, double fade=0.0)
 

Function Documentation

◆ odgiImageViewport()

ODGI_EXPORT void odgiImageViewport ( OdGiViewportGeometry pGeom,
const OdGiRasterImage pImage,
const OdGePoint3d pBoundary,
bool  bFilter = true,
double  brightness = 50.0,
double  contrast = 50.0,
double  fade = 0.0 
)

Draws raster image into specified quadrilateral boundary.

Parameters
pGeom[in] Client geometry object into which final mapped image will be drawn.
pImage[in] Input raster image object.
pBoundary[in] Set of 4 points which represents output raster image boundary in WCS.
bFilter[in] Enables smooth interpolation filter during image scaling.
brightness[in] Image brightness [0 .. 100].
contrast[in] Image contrast [0 .. 100].
fade[in] Image fade value [0 .. 100].
Remarks
Boundary points order is:
  1. Bottom-left;
  2. Top-left;
  3. Top-right;
  4. Bottom-right.