Sample 47080: Create a high resolution PNG file with transparency
This sample uses SAS/GRAPH to create a high resolution image with transparency using the PNGT device driver.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
The sample code below illustrates the use of the PNGT device driver to create a 300 dots per inch (DPI) PNG image with transparency.
ods _all_ close;
ods listing image_dpi=300;
filename grafout 'c:\temp\png300t.png';
goptions reset=all device=pngt border xmax=8in ymax=8in
gsfname=grafout gsfmode=replace;
proc gplot data=sashelp.cars;
plot mpg_city*horsepower;
symbol1 interpol=none value=dot color=libg;
run;
quit;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This sample illustrates how to create a high resolution PNG image with transparency using the SAS/GRAPH® PNGT device driver.
Date Modified: | 2012-08-02 10:17:15 |
Date Created: | 2012-07-27 11:41:42 |
Operating System and Release Information
SAS System | N/A | Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.3 TS1M1 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.3 TS1M1 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.3 TS1M1 | |
Microsoft Windows XP 64-bit Edition | 9.3 TS1M1 | |
Microsoft® Windows® for x64 | 9.3 TS1M1 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M1 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M1 | |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M1 | |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M1 | |
Microsoft Windows Server 2008 | 9.3 TS1M1 | |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M1 | |
Microsoft Windows XP Professional | 9.3 TS1M1 | |
Windows 7 Enterprise 32 bit | 9.3 TS1M1 | |
Windows 7 Enterprise x64 | 9.3 TS1M1 | |
Windows 7 Home Premium 32 bit | 9.3 TS1M1 | |
Windows 7 Home Premium x64 | 9.3 TS1M1 | |
Windows 7 Professional 32 bit | 9.3 TS1M1 | |
Windows 7 Professional x64 | 9.3 TS1M1 | |
Windows 7 Ultimate 32 bit | 9.3 TS1M1 | |
Windows 7 Ultimate x64 | 9.3 TS1M1 | |
Windows Vista | 9.3 TS1M1 | |
Windows Vista for x64 | 9.3 TS1M1 | |