Image serialisation for image object persistence
申请公布号:GB2335514(A)
申请号:GB19980005723
申请日期:1998.03.18
申请公布日期:1999.09.22
发明人:DAVID * CLARK;ANDREW JOHN * SMITH
分类号:G06F9/44;(IPC1-7):G06F9/44
主分类号:G06F9/44
摘要:Java (RTM) development Toolkit version 1.1x (JDK) does not support the serialisation of images, but does allow primitive data types to be serialised, that is, primitive data type objects, including objects comprising primitive data type components, can be written to a file or another area of memory, before an application closes; when the application reopens, the primitive data types can be de-serialised and so recovered. According to this invention, an image object is converted into a primitive data type object and then serialised so that the image object can also be made persistent. In a preferred embodiment, the image object is converted to an array of integers representing the image pixels; a colour table of unique integers is created from the integer array; each integer in the integer array is converted into an index in the colour table; and the combined colour table and array of indices are compressed before serialisation.