colors to adobe ASE file

  1. 2 weeks ago

    Gijs R

    Sep 8 Rotterdam, Netherlands

    Is it possible to somehow save a number of Colors as an adobe ASE file?

    Yes, but asking that is like asking "Can I build a house with trees?" - it's knowing how to handle the trees with the various wood working tools that will let you turn them into a house.

    You should start by looking at binary file I/O, MemoryBlocks and InStrB. These are all well documented in the Xojo User guides. I recommend that you start there.

  2. Tim J

    Sep 8 Pre-Release Testers, Xojo Pro Dehydrating in AZ

    Not natively in Xojo. You would need to write an exporter or talk to one of the plugin teams to get one added. @Björn Eiacute;ksson and @ChristianSchmitz offer color handling in their plugin suites.

  3. last week

    Gijs R

    Sep 9 Rotterdam, Netherlands
    Edited last week

    Ok, any ideas where to start writing the exporter?

  4. Norman P

    Sep 9 Pre-Release Testers, Xojo Pro great-white-software.com/blog

    Getting the spec for the ADOBE ASE File format would be a good start
    Then write the code to write a file that matches that spec

  5. Tim J

    Sep 9 Pre-Release Testers, Xojo Pro Dehydrating in AZ

    You will need to sign up as an Adobe developer and the format is fully documented in the SDK.

    Or, if you're good at abstract thinking, you could follow the trail provided by Carl at:

    http://www.colourlovers.com/blog/2007/11/08/color-palettes-in-adobe-swatch-exchange-ase/

  6. 6 days ago

    Gijs R

    Sep 13 Rotterdam, Netherlands

    This seams useful: http://www.selapa.net/swatches/colors/fileformats.php
    Can this be connected to Xojo language in some way?

    ASE (Adobe Swatch Exchange)

    Adobe Creative Suite 3
    Byte-order: Big-endian
    Affiche russe.ase (Adobe Illustrator CS3)
    0000000 41 53 45 46 00 01 00 00 00 00 00 39 c0 01 00 00 ASEF.......9....
    0000010 00 22 00 10 00 41 00 66 00 66 00 69 00 63 00 68 ."...A.f.f.i.c.h
    .......
    0000b20 43 4d 59 4b 3e 68 e8 e8 3f 6c ec e9 3e f8 f8 e8 CMYK>h..?l..>...
    0000b30 3d 50 d0 60 00 02 c0 02 00 00 00 00 =P.`........
    File signature 4*char (ASEF)
    Version 2*int16 (1.0)
    Number of blocks 1*int32
    Blocks
    Blocks

    .......
    0000100 00 00 00 00 c0 01 00 00 00 22 00 10 00 41 00 66 ........."...A.f
    0000110 00 66 00 69 00 63 00 68 00 65 00 20 00 72 00 75 .f.i.c.h.e. .r.u
    0000120 00 73 00 73 00 65 00 20 00 32 00 00 00 01 00 00 .s.s.e. .2......
    .......
    0000220 00 00 00 01 00 00 00 3c 00 12 00 43 00 3d 00 30 .......<...C.=.0
    0000230 00 20 00 4d 00 3d 00 36 00 20 00 59 00 3d 00 31 . .M.=.6. .Y.=.1
    0000240 00 30 00 30 00 20 00 4b 00 3d 00 30 00 00 43 4d .0.0. .K.=.0..CM
    0000250 59 4b 00 00 00 00 3d 75 c2 90 3f 80 00 00 00 00 YK....=u..?.....
    0000260 00 00 00 02 00 01 00 00 00 42 00 15 00 43 00 3d .........B...C.=
    .......
    00002e0 00 00 00 00 00 00 00 00 3f 80 00 00 00 02 c0 02 ........?.......
    00002f0 00 00 00 00 c0 01 00 00 00 22 00 10 00 41 00 66 ........."...A.f
    .......
    Block type (0xc001 ⇒ Group start, 0xc002 ⇒ Group end, 0x0001 ⇒ Color entry)
    Block length 1*int32
    Group/Color name 0-terminated string of length (uint16) double-byte characters
    Color model 4*char (CMYK, RGB, LAB or Gray)
    Color values CMYK ⇒ 4*float32 / RGB & LAB ⇒ 3*float32 / Gray ⇒ 1*float32
    Color type 1*int16 (0 ⇒ Global, 1 ⇒ Spot, 2 ⇒ Normal)

  7. Tim J

    Sep 13 Pre-Release Testers, Xojo Pro Answer Dehydrating in AZ

    Yes, but asking that is like asking "Can I build a house with trees?" - it's knowing how to handle the trees with the various wood working tools that will let you turn them into a house.

    You should start by looking at binary file I/O, MemoryBlocks and InStrB. These are all well documented in the Xojo User guides. I recommend that you start there.

  8. 5 days ago

    Gijs R

    Sep 14 Rotterdam, Netherlands

    As an architect the house and trees issue is much more familiar :) Thanks for the ingredients your mentioned. I will take it from there.

or Sign Up to reply!