Files
@ d7edbe56b125
Branch filter:
Location: EI/VirtualLeaf/src/hull.h - annotation
d7edbe56b125
364 B
text/x-chdr
The snapshot feature stopped working on Windows. The problem was in MainBase::Save, where the "format" argument was added to "image->save". On Windows the file format must be given in Capitals and in specific formats (e.g. TIFF works, TIF not).
It is much safer to leave the 'format' argument out and let the system guess the format from the file extension.
--
user: Roeland Merks <roeland.merks@cwi.nl>
branch 'default'
changed src/canvas.cpp
changed src/mainbase.cpp
changed src/mainbase.h
It is much safer to leave the 'format' argument out and let the system guess the format from the file extension.
--
user: Roeland Merks <roeland.merks@cwi.nl>
branch 'default'
changed src/canvas.cpp
changed src/mainbase.cpp
changed src/mainbase.h
8aaffb5565a2 8aaffb5565a2 8aaffb5565a2 9a40ab737a73 9a40ab737a73 9a40ab737a73 9a40ab737a73 9a40ab737a73 9a40ab737a73 9a40ab737a73 9a40ab737a73 9a40ab737a73 9a40ab737a73 9a40ab737a73 9a40ab737a73 9a40ab737a73 8aaffb5565a2 9a40ab737a73 9a40ab737a73 8aaffb5565a2 8aaffb5565a2 8aaffb5565a2 9a40ab737a73 8aaffb5565a2 | #ifndef _HULL_H_
#define _HULL_H_
// Class point needed by 2D convex hull code
class Point {
public:
Point(float xx, float yy) {
x=xx;
y=yy;
}
Point(void) {
x=0; y=0;
}
float x,y;
};
// required to sort points (e.g. Qt's qSort())
bool operator<(const Point & p1, const Point & p2);
int chainHull_2D( Point* P, int n, Point* H );
#endif
|