KSquare Utilities
ImageIO.cpp File Reference
#include "FirstIncludes.h"
#include <iostream>
#include <vector>
#include <string.h>
#include <windows.h>
#include <objidl.h>
#include <gdiplus.h>
#include "MemoryDebug.h"
#include "ImageIO.h"
#include "BMPImage.h"
#include "KKBaseTypes.h"
#include "KKException.h"
#include "Histogram.h"
#include "OSservices.h"
#include "Raster.h"
#include <Gdipluspixelformats.h>

Go to the source code of this file.

Namespaces

 KKB
 KKB The namespace for KKBase Library supporting general functionality needed by almost any application.
 

Functions

void KKB::DefineImageIoAtExit ()
 
void KKB::ImageIoFinaleCleanUp ()
 
RasterPtr KKB::ReadImagePGM (const KKStr &imageFileName)
 
RasterPtr KKB::ReadImagePPM (const KKStr &imageFileName)
 
KKStr KKB::ReadImagePpmField (FILE *in, bool &eof)
 
RasterPtr KKB::ReadImageUsingGDI (const KKStr &imageFileName)
 
void KKB::SaveImagePGM (const Raster &image, const KKStr &imageFileName)
 
void KKB::SaveImagePNG (const Raster &image, const KKStr &imageFileName)
 
void KKB::SaveImagePPM (const Raster &image, const KKStr &imageFileName)
 

Variables

GdiplusStartupInput gdiplusStartupInput
 
ULONG_PTR gdiplusToken
 
bool gdiStarted = false
 
bool KKB::imageIoAtExitDefined = false
 

Variable Documentation

GdiplusStartupInput gdiplusStartupInput

Definition at line 234 of file ImageIO.cpp.

ULONG_PTR gdiplusToken

Definition at line 235 of file ImageIO.cpp.

bool gdiStarted = false

Definition at line 233 of file ImageIO.cpp.

Referenced by KKB::ImageIoFinaleCleanUp(), and KKB::ReadImageUsingGDI().