-- Created on: 1993-07-27 -- Created by: Jean Louis FRENKEL -- Copyright (c) 1993-1999 Matra Datavision -- Copyright (c) 1999-2012 OPEN CASCADE SAS -- -- The content of this file is subject to the Open CASCADE Technology Public -- License Version 6.5 (the "License"). You may not use the content of this file -- except in compliance with the License. Please obtain a copy of the License -- at http://www.opencascade.org and read it completely before using this file. -- -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. -- -- The Original Code and all software distributed under the License is -- distributed on an "AS IS" basis, without warranty of any kind, and the -- Initial Developer hereby disclaims all such warranties, including without -- limitation, any warranties of merchantability, fitness for a particular -- purpose or non-infringement. Please see the License for the specific terms -- and conditions governing the rights and limitations under the License. class ColorImage from Image inherits DColorImage from Image ---Purpose : A ColorImage is a DColorImage with specific method. -- Each Pixel in the Image ,as a ColorPixel -- from Aspect, can be use directly as a Color. -- A ColorImage is also called a "true color image". uses Color from Quantity, ColorPixel from Aspect, GenericColorMap from Aspect, Image from Image, ColorPixelMapHasher from Image, TypeOfImage from Image is Create( x,y,dx,dy : in Integer from Standard ) returns mutable ColorImage from Image; ---Level: Public ---Purpose : Create a ColorImage object. -- The default Background Pixel is set to Black . -- All the Image is initialised with Background Pixel Create( x,y,dx,dy : in Integer from Standard; BackPixel : ColorPixel from Aspect ) returns mutable ColorImage from Image; ---Level: Public ---Purpose : Create a ColorImage object and set the Background Pixel. -- All the Image is initialised with Background Pixel ChooseColorMap( me : immutable ; aSize : Integer from Standard ) returns GenericColorMap from Aspect ; ---Purpose : Create a GenericColorMap object with the best ColorMap -- of a particular size to use in Dithering method . -- The best ColorMap is defined to be the one that contains as -- many as possible of the most frequently used colors. Type ( me : immutable ) returns TypeOfImage from Image ; ---Level: Public ---Purpose : Returns the Image Type. PixelColor( me : immutable ; X,Y : in Integer from Standard ) returns Color from Quantity ; ---C++: return const & ---Purpose : Returns the Pixel Color . Dup ( me : immutable ) returns mutable Image from Image ; ---Purpose : Duplicates a Image. -- ******************* Redefined method *************************** -- ShallowCopy (me) returns mutable like me ; ---Level: Public -- ---Purpose: Returns a copy at the first level of . The objects -- -- referenced are not copied. Entities copied by -- -- ShallowCopy are equal. -- ---C++: function call -- DeepCopy (me) returns mutable like me ; ---Level: Public -- ---Purpose: Returns a deep copy of . The objects -- -- referenced are copied. Entities copied by -- -- DeepCopy are similar (c.f the Method IsSimilar). -- ---C++: function call end ColorImage from Image;