Region(const GraphicsPath *path)
{
- status = DllExports::GdipCreateRegionPath(path->path, ®ion);
+ status = DllExports::GdipCreateRegionPath(path->nativePath, ®ion);
}
Region(HRGN hRgn)
Status
Complement(const GraphicsPath *path)
{
- return SetStatus(DllExports::GdipCombineRegionPath(region, path ? path->path : NULL, CombineModeComplement));
+ GpPath *thePath = path ? path->nativePath : NULL;
+ return SetStatus(DllExports::GdipCombineRegionPath(region, thePath, CombineModeComplement));
}
Status
Complement(const Region *region)
{
- return SetStatus(
- DllExports::GdipCombineRegionRegion(this->region, region ? region->region : NULL, CombineModeComplement));
+ GpRegion *theRegion = region ? region->region : NULL;
+ return SetStatus(DllExports::GdipCombineRegionRegion(this->region, theRegion, CombineModeComplement));
}
Status
Status
Exclude(const GraphicsPath *path)
{
- return SetStatus(DllExports::GdipCombineRegionPath(region, path ? path->path : NULL, CombineModeExclude));
+ return SetStatus(DllExports::GdipCombineRegionPath(region, path ? path->nativePath : NULL, CombineModeExclude));
}
Status
Status
GetRegionScans(const Matrix *matrix, Rect *rects, INT *count) const
{
- return SetStatus(DllExports::GdipGetRegionScansI(region, rects, count, matrix ? matrix->matrix : NULL));
+ return SetStatus(DllExports::GdipGetRegionScansI(region, rects, count, matrix ? matrix->nativeMatrix : NULL));
}
Status
GetRegionScans(const Matrix *matrix, RectF *rects, INT *count) const
{
- return SetStatus(DllExports::GdipGetRegionScans(region, rects, count, matrix ? matrix->matrix : NULL));
+ return SetStatus(DllExports::GdipGetRegionScans(region, rects, count, matrix ? matrix->nativeMatrix : NULL));
}
UINT
GetRegionScansCount(const Matrix *matrix) const
{
UINT count;
- SetStatus(DllExports::GdipGetRegionScansCount(region, &count, matrix ? matrix->matrix : NULL));
+ SetStatus(DllExports::GdipGetRegionScansCount(region, &count, matrix ? matrix->nativeMatrix : NULL));
return count;
}
Status
Intersect(const GraphicsPath *path)
{
- return SetStatus(DllExports::GdipCombineRegionPath(region, path ? path->path : NULL, CombineModeIntersect));
+ GpPath *thePath = path ? path->nativePath : NULL;
+ return SetStatus(DllExports::GdipCombineRegionPath(region, thePath, CombineModeIntersect));
}
Status
Status
Transform(const Matrix *matrix)
{
- return SetStatus(DllExports::GdipTransformRegion(region, matrix ? matrix->matrix : NULL));
+ return SetStatus(DllExports::GdipTransformRegion(region, matrix ? matrix->nativeMatrix : NULL));
}
Status
Status
Union(const GraphicsPath *path)
{
- return SetStatus(DllExports::GdipCombineRegionPath(region, path ? path->path : NULL, CombineModeUnion));
+ return SetStatus(DllExports::GdipCombineRegionPath(region, path ? path->nativePath : NULL, CombineModeUnion));
}
Status
Xor(const GraphicsPath *path)
{
- return SetStatus(DllExports::GdipCombineRegionPath(region, path ? path->path : NULL, CombineModeXor));
+ return SetStatus(DllExports::GdipCombineRegionPath(region, path ? path->nativePath : NULL, CombineModeXor));
}
Status