Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::LoadWriterPNG Class Reference

The LoadWriterPNG class is a ResourceLoadWriter capable of reading PNG files. More...

#include <ioPNG.hpp>

Inheritance diagram for vl::LoadWriterPNG:
vl::ResourceLoadWriter vl::Object

List of all members.

Public Member Functions

 LoadWriterPNG ()
ref< ResourceDatabaseloadResource (const String &path) const
ref< ResourceDatabaseloadResource (VirtualFile *file) const
bool writeResource (const String &path, ResourceDatabase *resource) const
bool writeResource (VirtualFile *file, ResourceDatabase *resource) const
int compression () const
void setCompression (int compression)
 Sets the compression level used when saving a file. Should be between 0 and 9.

Protected Attributes

int mCompression

Detailed Description

The LoadWriterPNG class is a ResourceLoadWriter capable of reading PNG files.

Definition at line 57 of file ioPNG.hpp.


Constructor & Destructor Documentation

vl::LoadWriterPNG::LoadWriterPNG (  ) [inline]

Definition at line 62 of file ioPNG.hpp.

References VL_DEBUG_SET_OBJECT_NAME.


Member Function Documentation

ref<ResourceDatabase> vl::LoadWriterPNG::loadResource ( const String path ) const [inline, virtual]

Implements vl::ResourceLoadWriter.

Definition at line 67 of file ioPNG.hpp.

References vl::loadPNG().

ref<ResourceDatabase> vl::LoadWriterPNG::loadResource ( VirtualFile file ) const [inline, virtual]

Implements vl::ResourceLoadWriter.

Definition at line 76 of file ioPNG.hpp.

References vl::loadPNG().

bool vl::LoadWriterPNG::writeResource ( const String path,
ResourceDatabase resource 
) const [inline, virtual]
bool vl::LoadWriterPNG::writeResource ( VirtualFile file,
ResourceDatabase resource 
) const [inline, virtual]
int vl::LoadWriterPNG::compression (  ) const [inline]

Definition at line 101 of file ioPNG.hpp.

References mCompression.

Referenced by setCompression(), and writeResource().

void vl::LoadWriterPNG::setCompression ( int  compression ) [inline]

Sets the compression level used when saving a file. Should be between 0 and 9.

Definition at line 103 of file ioPNG.hpp.

References compression(), and mCompression.


Member Data Documentation

Definition at line 106 of file ioPNG.hpp.

Referenced by compression(), and setCompression().


The documentation for this class was generated from the following file:

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:07.
Permission is granted to use this page to write and publish articles regarding Visualization Library.