Ejemplo n.º 1
0
void	oImgBitmap::getContents(EXTfldval &pContents) {
	if (mImage == NULL) {
		pContents.setEmpty(fftBinary, 0);		
	} else {
		int				len = 0;
		unsigned char *	pngdata = mImage->asPNG(len);

		if (pngdata == NULL) {
			oBaseComponent::addToTraceLog("getContents: No image");
			pContents.setEmpty(fftBinary, 0);		
		} else {
			pContents.setBinary(fftBinary, pngdata, len);

			free(pngdata);
		};
	};
};
Ejemplo n.º 2
0
// Get an EXTfldval for a C++ Binary (vector of unsigned char)
void OmnisTools::getEXTFldValFromBinaryVector(EXTfldval& fVal, std::vector<unsigned char>& v) {
    fVal.setBinary(fftBinary, &v[0], v.size());
}