#!/usr/bin/env python2.4 #-*- coding: iso8859-15 -*- import os import sys import Image # Class to process an image ## \internal ## Class to process an image class ReadImage: # Creates the new object ## Creates the new object ## \param self - ## \param filename Filename ## \param ini Pixel to start ## \param end Pixel to end ## \param linecolor Color of the line def __init__(self,filename,ini,end,linecolor): # Get config (xini,yini)=ini (xend,yend)=end # Repair config xini=xini+1 yini=yini+1 xend=xend-1 yend=yend-1 # Remember config self.__xini=xini self.__xend=xend self.__yini=yini self.__yend=yend self.__linecolor=linecolor # Open the file self.__image=Image.open(filename) (width,height)=self.__image.size # Start values self.__values=None # Check limits if (not (xini>0 and xini0 and xend0 and yini0 and yend