converters.cxx (2b45cf47) | converters.cxx (45fd3b9a) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 18 unchanged lines hidden (view full) --- 27#include <drawinglayer/processor2d/vclpixelprocessor2d.hxx> 28#include <drawinglayer/primitive2d/modifiedcolorprimitive2d.hxx> 29#include <basegfx/matrix/b2dhommatrixtools.hxx> 30#include <drawinglayer/primitive2d/transformprimitive2d.hxx> 31#include <vcl/virdev.hxx> 32 33#ifdef DBG_UTIL 34#include <tools/stream.hxx> | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 18 unchanged lines hidden (view full) --- 27#include <drawinglayer/processor2d/vclpixelprocessor2d.hxx> 28#include <drawinglayer/primitive2d/modifiedcolorprimitive2d.hxx> 29#include <basegfx/matrix/b2dhommatrixtools.hxx> 30#include <drawinglayer/primitive2d/transformprimitive2d.hxx> 31#include <vcl/virdev.hxx> 32 33#ifdef DBG_UTIL 34#include <tools/stream.hxx> |
35#include <vcl/pngwrite.hxx> |
|
35#endif 36 37////////////////////////////////////////////////////////////////////////////// 38 39namespace drawinglayer 40{ 41 namespace tools 42 { --- 81 unchanged lines hidden (view full) --- 124 aRetval = BitmapEx(aContent, aAlphaMask); 125 } 126 127#ifdef DBG_UTIL 128 static bool bDoSaveForVisualControl(false); 129 if(bDoSaveForVisualControl) 130 { 131 SvFileStream aNew((const String&)String(ByteString( "c:\\test.png" ), RTL_TEXTENCODING_UTF8), STREAM_WRITE|STREAM_TRUNC); | 36#endif 37 38////////////////////////////////////////////////////////////////////////////// 39 40namespace drawinglayer 41{ 42 namespace tools 43 { --- 81 unchanged lines hidden (view full) --- 125 aRetval = BitmapEx(aContent, aAlphaMask); 126 } 127 128#ifdef DBG_UTIL 129 static bool bDoSaveForVisualControl(false); 130 if(bDoSaveForVisualControl) 131 { 132 SvFileStream aNew((const String&)String(ByteString( "c:\\test.png" ), RTL_TEXTENCODING_UTF8), STREAM_WRITE|STREAM_TRUNC); |
132 aNew << aRetval; | 133 ::vcl::PNGWriter aPNGWriter(aRetval); 134 aPNGWriter.Write(aNew); |
133 } 134#endif 135 136 return aRetval; 137 } 138 139 } // end of namespace tools 140} // end of namespace drawinglayer 141 142////////////////////////////////////////////////////////////////////////////// 143// eof | 135 } 136#endif 137 138 return aRetval; 139 } 140 141 } // end of namespace tools 142} // end of namespace drawinglayer 143 144////////////////////////////////////////////////////////////////////////////// 145// eof |