/[public]/psiconv/trunk/program/psiconv/gen_image.c
ViewVC logotype

Diff of /psiconv/trunk/program/psiconv/gen_image.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 192 Revision 196
1/* 1/*
2 * gen_image.c - Part of psiconv, a PSION 5 file formats converter 2 * gen_image.c - Part of psiconv, a PSION 5 file formats converter
3 * Copyright (c) 1999 Frodo Looijaard <frodol@dds.nl> 3 * Copyright (c) 1999-2004 Frodo Looijaard <frodol@dds.nl>
4 * 4 *
5 * This program is free software; you can redistribute it and/or modify 5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by 6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or 7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version. 8 * (at your option) any later version.
41 const psiconv_clipart_f f, const char *dest); 41 const psiconv_clipart_f f, const char *dest);
42static void gen_mbm(const psiconv_config config,psiconv_list list, 42static void gen_mbm(const psiconv_config config,psiconv_list list,
43 const psiconv_mbm_f f, const char *dest); 43 const psiconv_mbm_f f, const char *dest);
44static void gen_sketch(const psiconv_config config,psiconv_list list, 44static void gen_sketch(const psiconv_config config,psiconv_list list,
45 const psiconv_sketch_f f, const char *dest); 45 const psiconv_sketch_f f, const char *dest);
46static int gen_image(psiconv_config config, psiconv_list list,
47 const psiconv_file file, const char *dest,
48 const encoding encoding_type);
46 49
47/* This is ridiculously simple using ImageMagick. Without it, it would 50/* This is ridiculously simple using ImageMagick. Without it, it would
48 be quite somewhat harder - it will be left for later on. 51 be quite somewhat harder - it will be left for later on.
49 Note that we ignore any errors. Dangerous... */ 52 Note that we ignore any errors. Dangerous... */
50 53
207 image_to_list(list,image,dest); 210 image_to_list(list,image,dest);
208 DestroyImage(image); 211 DestroyImage(image);
209} 212}
210 213
211 214
212static int gen_image(psiconv_config config, psiconv_list list, 215int gen_image(psiconv_config config, psiconv_list list,
213 const psiconv_file file, const char *dest, 216 const psiconv_file file, const char *dest,
214 const encoding encoding_type) 217 const encoding encoding_type)
215{ 218{
216 if (file->type == psiconv_mbm_file) 219 if (file->type == psiconv_mbm_file)
217 gen_mbm(config,list,(psiconv_mbm_f) file->file,dest); 220 gen_mbm(config,list,(psiconv_mbm_f) file->file,dest);

Legend:
Removed from v.192  
changed lines
  Added in v.196

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26