From c2237c2116ca551c0755821beadae3fac54547e7 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 30 Jul 2013 13:52:22 +0100 Subject: perfecting draw node --- rotord/src/cvimage.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rotord/src/cvimage.cpp') diff --git a/rotord/src/cvimage.cpp b/rotord/src/cvimage.cpp index c18c585..a03d81c 100644 --- a/rotord/src/cvimage.cpp +++ b/rotord/src/cvimage.cpp @@ -3,6 +3,13 @@ using namespace std; namespace Rotor { + //space out to 32 bit RGB padding for cairo + void Image::convert24(){ + cv::cvtColor(rgb,rgb, CV_RGBA2RGB); + } + void Image::convert32(){ + cv::cvtColor(rgb,rgb, CV_RGB2RGBA); + } Image & Image::operator+=(const Image &other) { if (other.w!=w||other.h!=h) { cerr<<"Rotor: cannot add images with different sizes! (wanted "<