⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 image.h

📁 linux下将各类格式图片转换工具
💻 H
字号:
/* *  image.h * *  Written by:		Ullrich Hafner *		 *  This file is part of FIASCO (獸籸actal 獻籱age 獳籲d 玈籩quence 獵O籨ec) *  Copyright (C) 1994-2000 Ullrich Hafner <hafner@bigfoot.de> *//* *  $Date: 2000/10/22 10:43:56 $ *  $Author: hafner $ *  $Revision: 5.3 $ *  $State: Exp $ */#ifndef _IMAGE_H#define _IMAGE_H#include <stdio.h>#include "types.h"#include "fiasco.h"typedef enum {FORMAT_4_4_4, FORMAT_4_2_0} format_e;typedef struct image/* *  Image data */{   char      id [7];   unsigned  reference_count;   unsigned  width;			/* Width of the image */   unsigned  height;			/* Height of the image */   bool_t    color;			/* Color or grayscale image */   format_e  format;			/* Pixel format 4:4:4 or 4:2:0 */   word_t   *pixels [3];		/* Pixels in short format */} image_t;image_t *cast_image (fiasco_image_t *image);image_t *alloc_image (unsigned width, unsigned height, bool_t color, format_e format);image_t *clone_image (image_t *image);voidfree_image (image_t *image);FILE *read_pnmheader (const char *image_name, unsigned *width, unsigned *height,		bool_t *color);image_t *read_image (const char *image_name);voidwrite_image (const char *image_name, const image_t *image);bool_tsame_image_type (const image_t *img1, const image_t *img2);#endif /* not _IMAGE_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -