ofxThermalPrinter icon indicating copy to clipboard operation
ofxThermalPrinter copied to clipboard

getPixelsRef() has changed into getPixels()

Open pierrextardif opened this issue 6 years ago • 0 comments

I think that line 220 of ofxThermalPrinter.cpp should be :

 //    print(_img.getPixelsRef(),_threshold);
print(_img.getPixels(),_threshold);

getPixelsRef is deprecated: line 409 in ofImage.cpp :


    /// \returns An ofPixels reference that you can use to manipulate the raw pixel data of the ofImage.
    OF_DEPRECATED_MSG("Use getPixels() instead ", ofPixels_<PixelType> & getPixelsRef());
    OF_DEPRECATED_MSG("Use getPixels() instead ", const ofPixels_<PixelType> & getPixelsRef() const);

It worked with the change for me.

pierrextardif avatar Nov 06 '18 14:11 pierrextardif