.CUT Files

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, XnTriq, xnview

Post Reply
ColorSpaced
Posts: 1
Joined: Wed Sep 17, 2014 7:58 pm

.CUT Files

Post 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.
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: .CUT Files

Post 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
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: .CUT Files

Post 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
Post Reply