Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

dyima.c

Go to the documentation of this file.
00001 /************************************************************************* 00002 * $Id: dyima.c,v 1.1 2005/09/09 08:22:24 bellet Exp $ 00003 ************************************************************************** 00004 This software is governed by the CeCILL license under French law and 00005 abiding by the rules of distribution of free software. You can use, 00006 modify and/ or redistribute the software under the terms of the CeCILL 00007 license as circulated by CEA, CNRS and INRIA at the following URL 00008 "http://www.cecill.info". 00009 00010 As a counterpart to the access to the source code and rights to copy, 00011 modify and redistribute granted by the license, users are provided only 00012 with a limited warranty and the software's author, the holder of the 00013 economic rights, and the successive licensors have only limited 00014 liability. 00015 00016 In this respect, the user's attention is drawn to the risks associated 00017 with loading, using, modifying and/or developing or reproducing the 00018 software by the user in light of its specific status of free software, 00019 that may mean that it is complicated to manipulate, and that also 00020 therefore means that it is reserved for developers and experienced 00021 professionals having in-depth computer knowledge. Users are therefore 00022 encouraged to load and test the software's suitability as regards their 00023 requirements in conditions enabling the security of their systems and/or 00024 data to be ensured and, more generally, to use and operate it in the 00025 same conditions as regards security. 00026 00027 The fact that you are presently reading this means that you have had 00028 knowledge of the CeCILL license and that you accept its terms. 00029 00030 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de 00031 l'Image). All rights reserved. See License.txt for details. 00032 00033 Version 1.0 05/09/2005 00034 *************************************************************************/ 00035 00036 #if defined(HAVE_X11) || defined(_MSC_VER) 00037 #include "idima.h" 00038 #include "idima-private.h" 00039 00041 00042 /* FUNCTION DESCRIPTION **************************************************** 00043 * 00044 * IdImaDisplayColorQ (macro) 00045 * 00046 * RESUME: affiche une image 8 bits avec une palette couleur 00047 * 00048 * DESCRIPTION: affiche une zone d'une image 8 bits dans le display 00049 * avec une palette couleur 00050 * 00051 * SYNTAXE: void IdImaDisplayColorQ (PPIMAGE_UCHAR im,int modAff, PSIGNAL_RGB pal); 00052 * 00053 * RETOUR : type : rien 00054 * role : cf resume. 00055 * 00056 * PARAMETRES: nom : im 00057 * type : PPIMAGE_UCHAR 00058 * role : Pointeur vers l'image source 00059 * 00060 * nom : modAff 00061 * type : int 00062 * role : param d'affichage (depend du systeme) 00063 * pair: meme fenetre impair: nouvelle fenetre 00064 * images 8 bits: 00065 * 0-1 128 gris/couleurs garantis 00066 * 2-3 256 gris/couleurs non garantis 00067 * 4-5 256 gris/couleurs garantis 00068 * images 24 bits: 00069 * 16 millions de couleurs garanties (sur Serveur True Color) 00070 * 00071 * ATTENTION : pour des 'DISPLAY' pairs les images doivent 00072 * avoir TOUTES la meme taille (NX, NY) 00073 * ATTENTION : les 'DISPLAY' pairs n'ont pas d'effet sur PC 00074 * 00075 * Voir LibIDO Graphique (UTILIW/visuseri) 00076 * si ca vous pose des pb 00077 * 00078 * nom : pal 00079 * type : PSIGNAL_RGB 00080 * role : pointeur vers la palette 00081 * 00082 * FICHIER: DYIMAX.c 00083 * 00084 * EXEMPLE: 00085 * 00086 ******************************************************** END DESCRIPTION */ 00087 00088 00089 /* FUNCTION DESCRIPTION **************************************************** 00090 * 00091 * IdImaDisplayColor (macro) 00092 * 00093 * RESUME: Positionne une image 8 bits avec une palette couleur sur un ecran 00094 * 00095 * DESCRIPTION: Positionne une zone d'une image 8 bits commencant en (x,y) de 00096 * largeurs (nx,ny) a la position (ox,oy) dans le display 00097 * avec une palette couleur 00098 * 00099 * UTILISEZ PLUTOT IdImaDisplayColorQ (+ simple) 00100 * 00101 * SYNTAXE: void IdImaDisplayColor (PPIMAGE_UCHAR im,int modAff ,int offsetX, int offsetY,int tailleFenX,int tailleFenY, int posX, int posY, PSIGNAL_RGB pal); 00102 * 00103 * RETOUR : type : rien 00104 * role : cf resume. 00105 * 00106 * 00107 * PARAMETRES: nom : im 00108 * type : PPIMAGE_UCHAR 00109 * role : Pointeur vers l'image source 00110 * 00111 * nom : modAff 00112 * type : int 00113 * role : param d'affichage (depend du systeme) 00114 * pair: meme fenetre impair: nouvelle fenetre 00115 * images 8 bits: 00116 * 0-1 128 gris/couleurs garantis 00117 * 2-3 256 gris/couleurs non garantis 00118 * 4-5 256 gris/couleurs garantis 00119 * images 24 bits: 00120 * 16 millions de couleurs garanties (sur Serveur True Color) 00121 * 00122 * ATTENTION : pour des 'DISPLAY' pairs les images doivent 00123 * avoir TOUTES la meme taille (NX, NY) 00124 * ATTENTION : les 'DISPLAY' pairs n'ont pas d'effet sur PC 00125 * 00126 * Voir LibIDO Graphique (UTILIW/visuseri) 00127 * si ca vous pose des pb 00128 * 00129 * 00130 * nom : offsetX,offsetY 00131 * type : int 00132 * role : offset de depart en x,y 00133 * 00134 * nom : tailleFenX,tailleFenY 00135 * type : int 00136 * role : taille en X, Y de l'image produite 00137 * 00138 * nom : posX,posY 00139 * type : int 00140 * role : position en x,y dans le display 00141 * 00142 * nom : pal 00143 * type : PSIGNAL_RGB 00144 * role : pointeur vers la palette 00145 * 00146 * FICHIER: DYIMAX.c 00147 * 00148 * EXEMPLE: 00149 * 00150 ******************************************************** END DESCRIPTION */ 00151 00152 /* FUNCTION DESCRIPTION **************************************************** 00153 * 00154 * IdImaDisplayQ (macro) 00155 * 00156 * RESUME: Affiche une image 8 bits en 128 niveaux de gris 00157 * 00158 * DESCRIPTION: Affiche une image 8 bits dans le display 00159 * 00160 * SYNTAXE: void IdImaDisplayQ (PPIMAGE_UCHAR im,int modAff); 00161 * 00162 * RETOUR : type : rien 00163 * role : cf resume. 00164 * 00165 * PARAMETRES: nom : im 00166 * type : PPIMAGE_UCHAR 00167 * role : Pointeur vers l'image source 00168 * 00169 * nom : modAff 00170 * type : int 00171 * role : param d'affichage (depend du systeme) 00172 * pair: meme fenetre impair: nouvelle fenetre 00173 * images 8 bits: 00174 * 0-1 128 gris/couleurs garantis 00175 * 2-3 256 gris/couleurs non garantis 00176 * 4-5 256 gris/couleurs garantis 00177 * images 24 bits: 00178 * 16 millions de couleurs garanties (sur Serveur True Color) 00179 * 00180 * ATTENTION : pour des 'DISPLAY' pairs les images doivent 00181 * avoir TOUTES la meme taille (NX, NY) 00182 * ATTENTION : les 'DISPLAY' pairs n'ont pas d'effet sur PC 00183 * 00184 * Voir LibIDO Graphique (UTILIW/visuseri) 00185 * si ca vous pose des pb 00186 * 00187 * FICHIER: DYIMAX.c 00188 * 00189 * EXEMPLE: 00190 * 00191 ******************************************************** END DESCRIPTION */ 00192 00193 /* FUNCTION DESCRIPTION **************************************************** 00194 * 00195 * IdImaDisplay (macro) 00196 * 00197 * RESUME: Positionne 1 zone d'1 image 8 bits en 128 niveaux de gris 00198 * 00199 * DESCRIPTION: Positionne une zone d'une image 8 bits commencant en (x,y) de 00200 * largeurs (nx,ny) a la position (ox,oy) dans le display 00201 * 00202 * UTILISEZ PLUTOT IdImaDisplayQ (+ simple) 00203 * 00204 * SYNTAXE: void IdImaDisplay (PPIMAGE_UCHAR im,int modAff ,int offsetX, int offsetY,int tailleFenX,int tailleFenY, int posX, int posY); 00205 * 00206 * RETOUR : type : rien 00207 * role : cf resume. 00208 * 00209 * PARAMETRES: nom : im 00210 * type : PPIMAGE_UCHAR 00211 * role : Pointeur vers l'image source 00212 * 00213 * nom : modAff 00214 * type : int 00215 * role : param d'affichage (depend du systeme) 00216 * pair: meme fenetre impair: nouvelle fenetre 00217 * images 8 bits: 00218 * 0-1 128 gris/couleurs garantis 00219 * 2-3 256 gris/couleurs non garantis 00220 * 4-5 256 gris/couleurs garantis 00221 * images 24 bits: 00222 * 16 millions de couleurs garanties (sur Serveur True Color) 00223 * 00224 * ATTENTION : pour des 'DISPLAY' pairs les images doivent 00225 * avoir TOUTES la meme taille (NX, NY) 00226 * ATTENTION : les 'DISPLAY' pairs n'ont pas d'effet sur PC 00227 * 00228 * Voir LibIDO Graphique (UTILIW/visuseri) 00229 * si ca vous pose des pb 00230 * 00231 * nom : offsetX,offsetY 00232 * type : int 00233 * role : offset de depart en x,y 00234 * 00235 * nom : tailleFenX,tailleFenY 00236 * type : int 00237 * role : taille en X, Y de l'image produite 00238 * 00239 * nom : posX,posY 00240 * type : int 00241 * role : position en x,y dans le display 00242 * 00243 * nom : pal 00244 * type : PSIGNAL_RGB 00245 * role : pointeur vers la palette. 00246 * 00247 * FICHIER: DYIMAX.c 00248 * 00249 * EXEMPLE: 00250 * 00251 ******************************************************** END DESCRIPTION */ 00252 00260 void 00261 IdImaDisplayColor (PPIMAGE_UCHAR im, 00262 int display, 00263 int x, int y, int nx, int ny, int ox, int oy, 00264 PSIGNAL_RGB pal) 00265 { 00266 _IdImaDisplayColor(im, display, x, y, nx, ny, ox, oy, pal); 00267 } 00268 00276 void 00277 IdImaDisplay (PPIMAGE_UCHAR im, 00278 int display, 00279 int x, int y, int nx, int ny, int ox, int oy) 00280 { 00281 _IdImaDisplayColor(im, display, x, y, nx, ny, ox, oy, NULL); 00282 } 00283 00284 00285 00286 00300 void 00301 IdImaDisplayQ (PPIMAGE_UCHAR im, int display) 00302 { 00303 _IdImaDisplayColor(im, display, 00304 0, 0, IdImaDimX(im), IdImaDimY(im), 0, 0, NULL); 00305 } 00306 00322 void 00323 IdImaDisplayColorQ (PPIMAGE_UCHAR im, int display, PSIGNAL_RGB pal) 00324 { 00325 _IdImaDisplayColor(im, display, 00326 0, 0, IdImaDimX(im), IdImaDimY(im), 0, 0, pal); 00327 } 00328 #else /* HAVE_X11 || MSC_VER */ 00329 /* Here we put dummy functions to satisfy filters programs compilation 00330 * even when X11 is not available 00331 */ 00332 #include "idima.h" 00333 void IdImaDisplayColor (PPIMAGE_UCHAR im, 00334 int display, 00335 int x, int y, int nx, int ny, int ox, int oy, 00336 PSIGNAL_RGB pal) 00337 {} 00338 void IdImaDisplay (PPIMAGE_UCHAR im, 00339 int display, int x, int y, int nx, int ny, int ox, int oy) 00340 {} 00341 void IdImaDisplayQ (PPIMAGE_UCHAR im, int display) 00342 {} 00343 void IdImaDisplayColorQ (PPIMAGE_UCHAR im, int display, PSIGNAL_RGB pal) 00344 {} 00345 #endif /* HAVE_X11 || MSC_VER */

Generated on Wed Oct 19 09:28:33 2005 for SIMRI3D by doxygen 1.3.7