MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / convert

Method convert

source/core/StarImage.cpp:468–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468Image Image::convert(PixelFormat pixelFormat) const {
469 Image converted(m_width, m_height, pixelFormat);
470 converted.copyInto(Vec2U(), *this);
471 return converted;
472}
473
474void Image::writePng(IODevicePtr device) const {
475 auto writePngData = [](png_structp pngPtr, png_bytep data, png_size_t length) {

Callers

nothing calls this directly

Calls 1

copyIntoMethod · 0.80

Tested by

no test coverage detected