Loading ...
Sorry, an error occurred while loading the content.
 

RE: [cc2-dev-l] Parsing CC3 symbol files

Expand Messages
  • Peter Olsson
    Do you mean bitmap entities? They should be inside symbol definitions... Here is the header: #define XT_PICTR 1 typedef struct _tag_resinfo { BOOL Present;
    Message 1 of 2 , Feb 25, 2008
      Do you mean bitmap entities?
      They should be inside symbol definitions...

      Here is the header:

      #define XT_PICTR 1

      typedef struct _tag_resinfo
      {
      BOOL Present;
      UINT width;
      UINT height;
      } RESINFO;

      #define RESINFO_COUNT 4

      typedef struct _tag_pictr
      {
      CSTUFF CStuff;
      unsigned short XPId; // XP ID # for custom entity SVC
      char XType; // entity sub-type (if needed)

      DWORD Version;
      DWORD Flags;

      IMGXFRMODE Mode;

      DWORD bmwid; // actual bitmap size
      DWORD bmhgt;

      GPOINT2 Cen; // Bitmap center
      float Bearing;
      float RWid;
      float RHgt; // real size * 0.5

      UINT TColor;
      int Alpha;

      RESINFO ResInfo[RESINFO_COUNT];

      DWORD Reserve[32];

      char BMPName[256]; // bitmap file name
      } PICTR;

      // Values for PictR.Flags:

      #define PF_NO_OUTLINE 1
      #define PF_DRAW_IN_XOR 2
      #define PF_RESINFO_VALID 4
      #define PF_RESINFO_ONLY1 8
      #define PF_USE_CUR_COLOR 16
      #define PF_ROOF_SHADE 32
      #define PF_MIRROR 64

      #define PICTR_VERSION 0



      Please let me know if you need any explanations

      Peter Olsson
      PK Data


      From: cc2-dev-l@yahoogroups.com [mailto:cc2-dev-l@yahoogroups.com] On Behalf
      Of markt_1964
      Sent: Saturday, February 23, 2008 2:10 AM
      To: cc2-dev-l@yahoogroups.com
      Subject: [cc2-dev-l] Parsing CC3 symbol files

      In trying to parse the contents of a CC3 symbol file, it seems that
      all the symbols are composed of type #4 entries, which is a custom
      entry. Is there any documentation on this entry with regards to how
      it is used in symbol files?

      Thanks
    Your message has been successfully submitted and would be delivered to recipients shortly.