metafile-inout.cpp revision 034d7ccaa6acbcd03e37974a2d164706862c32a2
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * @brief Metafile input - common routines
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * David Mathog
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Copyright (C) 2013 Authors
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Released under GNU GPL, read the file 'COPYING' for more information
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#include "extension/internal/metafile-inout.h" // picks up PNG
#include "preferences.h"
namespace Inkscape {
namespace Extension {
namespace Internal {
gcc -Wall -o testpng testpng.c -lpng
#include <png.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
size_t x, y;
doc->setViewBox(Geom::Rect::from_xywh(0, 0, doc->getWidth().value(doc_unit), doc->getHeight().value(doc_unit)));
double dh;
switch(op) {
case U_RGN_AND:
case U_RGN_OR:
case U_RGN_XOR:
case U_RGN_DIFF:
return(ret);
inverse of gethexcolor() in emf-print.cpp
return(out);
gchar *gstring = g_strdup("iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAIAAAA7ljmRAAAAA3NCSVQICAjb4U/gAAAALElEQVQImQXBQQ2AMAAAsUJQMSWI2H8qME1yMshojwrvGB8XcHKvR1XtOTc/8HENumHCsOMAAAAASUVORK5CYII=");
return(gstring);