Skip to content
Snippets Groups Projects
Commit a3dfb67b authored by Tom Fischer's avatar Tom Fischer
Browse files

[A/DE/VtkVis] Raster: Rm. unused private function.

parent 3add7b9d
No related branches found
No related tags found
No related merge requests found
......@@ -388,13 +388,3 @@ bool VtkRaster::readWorldFile(std::string const& filename,
image->SetDataOrigin(x0, vtk_y0, 0);
return true;
}
void VtkRaster::uint32toRGBA(const unsigned int s, int* p)
{
p[3] = s / (256 * 256 * 256);
int r = s % (256 * 256 * 256);
p[2] = r / (256 * 256);
r %= (256 * 256);
p[1] = r / 256;
p[0] = r % 256;
}
......@@ -72,7 +72,4 @@ private:
* BMP/JPG/PNG-file and create a RasterHeader for the image.
*/
static bool readWorldFile(std::string const& filename, vtkImageReader2* image);
/// Converts an uint32-number into a quadruple representing RGBA-colours for a pixel.
static void uint32toRGBA(const unsigned int s, int* p);
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment