37 extern QRgb
pixelRGB (
const QImage &image,
int x,
int y);
40 extern QRgb
pixelRGB1 (
const QImage &image1Bit,
int x,
int y);
43 extern QRgb
pixelRGB8 (
const QImage &image8Bit,
int x,
int y);
46 extern QRgb
pixelRGB32 (
const QImage &image32Bit,
int x,
int y);
70 double *projectedDistanceOutsideLine,
71 double *distanceToLine);
74 extern void setPixelRGB (QImage &image,
int x,
int y, QRgb q);
77 extern void setPixelRGB1 (QImage &image1Bit,
int x,
int y, QRgb q);
80 extern void setPixelRGB8 (QImage &image8Bit,
int x,
int y, QRgb q);
83 extern void setPixelRGB32 (QImage &image32Bit,
int x,
int y, QRgb q);
void projectPointOntoLine(double xToProject, double yToProject, double xStart, double yStart, double xStop, double yStop, double *xProjection, double *yProjection, double *projectedDistanceOutsideLine, double *distanceToLine)
Find the projection of a point onto a line segment such that the line through the point and its proje...
void setPixelRGB8(QImage &image8Bit, int x, int y, QRgb q)
Set pixel method for 8 bit depth.
QRgb pixelRGB1(const QImage &image1Bit, int x, int y)
Get pixel method for one bit depth.
double angleFromVectorToVector(const QPointF &vFrom, const QPointF &vTo)
Angle between two vectors. Direction is positive when rotation is about +z vector,...
void setPixelRGB(QImage &image, int x, int y, QRgb q)
Set pixel method for any bit depth.
void setPixelRGB32(QImage &image32Bit, int x, int y, QRgb q)
Set pixel method for 32 bit depth.
double angleBetweenVectors(const QPointF &v1, const QPointF &v2)
Angle between two vectors. Direction is unimportant, so result is between 0 to pi radians.
void ellipseFromParallelogram(double xTL, double yTL, double xTR, double yTR, double xBR, double yBR, double &angleRadians, double &aAligned, double &bAligned)
Calculate ellipse parameters that is incribed in a parallelogram centered at the origin,...
QRgb pixelRGB32(const QImage &image32Bit, int x, int y)
Get pixel method for 32 bit depth.
QRgb pixelRGB8(const QImage &image8Bit, int x, int y)
Get pixel method for 8 bit depth.
QRgb pixelRGB(const QImage &image, int x, int y)
Get pixel method for any bit depth.
void setPixelRGB1(QImage &image1Bit, int x, int y, QRgb q)
Set pixel method for one bit depth.