Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
548 B

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: png functions
//
//=============================================================================
#include "tier0/platform.h"
#include "tier1/utlbuffer.h"
// Get dimensions out of PNG header
bool GetPNGDimensions( const byte *pubPNGData, int cubPNGData, uint32 &width, uint32 &height );
// parses out a png file into an RGBA memory buffer
bool ConvertPNGToRGBA( const byte *pubPNGData, int cubPNGData, CUtlBuffer &bufOutput, int &width, int &height );