Page 1 of 1
.CUT Files
Posted: Wed Sep 17, 2014 8:16 pm
by ColorSpaced
I'm not finding any references to opening / converting .CUT files. I need to extract the dimensions from legacy .CUT files.
Any help is appreciated.
Also, is there an online manual for XnViewMP??
Thanks.
Re: .CUT Files
Posted: Thu Sep 18, 2014 7:49 am
by m.Th.
I assume that you already have .CUT files and you cannot open with XnView, isn't it?
It seems that it is rather easy to open them, according to
http://www.fileformat.info/format/drhalo/egff.htm
An oddity is that usually it is accompanied from a PAL file which stores the color palette.
But if you want only the dimensions there are stored in the header of the file:
Code: Select all
typedef struct _HaloHeader
{
WORD Width; /* 00h Image Width in Pixels */
WORD Height; /* 02h Image Height in Scan Lines */
WORD Reserved; /* 04h Reserved Field (set to 0) */
} HALOHEAD;
So, if you just want the dimensions in pixels, you just need to read the first 4 bytes (two words) and group 2 by 2. The first 2 is the Width in pixels, the next 2 is the Height.
As per 'online manual' the best resource is/are these forums.
Also, perhaps you may want read these:
http://www.xnview.com/wiki/index.php/Ca ... _XnView_MP
http://www.xnview.com/wiki/index.php/Xn ... e_solution
Re: .CUT Files
Posted: Thu Sep 18, 2014 7:15 pm
by XnTriq
ColorSpaced wrote:I'm not finding any references to opening / converting .CUT files.
Please activate
Show all graphic formats in
Tools »
Settings... »
General