jabcode
 All Classes Files Functions Variables Enumerations Macros
image.c File Reference

Read and save png image. More...

#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "jabcode.h"
#include "png.h"

Functions

jab_boolean saveImage (jab_bitmap *bitmap, jab_char *filename)
 Save code bitmap as png image. More...
 
jab_bitmapreadImage (jab_char *filename)
 Read image into code bitmap. More...
 

Detailed Description

Read and save png image.

libjabcode - JABCode Encoding/Decoding Library

Copyright 2016 by Fraunhofer SIT. All rights reserved. See LICENSE file for full terms of use and distribution.

Contact: Huajian Liu liu@s.nosp@m.it.f.nosp@m.raunh.nosp@m.ofer.nosp@m..de Waldemar Berchtold walde.nosp@m.mar..nosp@m.berch.nosp@m.told.nosp@m.@sit..nosp@m.frau.nosp@m.nhofe.nosp@m.r.de

Function Documentation

jab_bitmap* readImage ( jab_char *  filename)

Read image into code bitmap.

Parameters
filenamethe image filename
Returns
Pointer to the code bitmap read from image | NULL
jab_boolean saveImage ( jab_bitmap bitmap,
jab_char *  filename 
)

Save code bitmap as png image.

Parameters
bitmapthe code bitmap
filenamethe image filename
Returns
JAB_SUCCESS | JAB_FAILURE