2005.08.03 09:27 "[Tiff] Overlay Hyperlinks On TIFF", by Chux Amobi

2005.08.09 06:33 "Re: [Tiff] Overlay Hyperlinks On TIFF", by Rob van den Tillaart

Earlier, I wrote:

uint16: number of clickable areas
per clickable area
    uint32: x

Not that it matters much, and it's probably hypothetical and not meant to be useful, but there's an aligment stupidity here that I might as well correct...

How about this:

uint16: number of clickable areas

uint16: region type
per clickable area
     uint32: x

The region type value can be either of 0: the width and height values are meaningfull, the clickable area is a rectangle

1-65534: the width and height values are to be ignored. Instead, this value describes are radius, and x and y describe the center point of a circular region. This type of region should not be included if XResolution and YResolution tags are in the IFD and have different values, since pixels in that case are not rectangular and a radius in pixels does not make sense. 65535: the widht and height values are to be ignored. Instead, after all regular rectangular regions (region type = 0) and circular regions (region type 1 to 65534) have been checked, and no region is found to comply, the x and y of this type of region that is nearest is said to be clicked. Again this type of region should not be included if XResolution is different from YResolution.

some refactoring :)

regiontype: name description

0000:   [rectangle]     the width and height values are just that
0001:   [ellipse]       the width and heigth values are the lengths 

                        of the axis of the ellipse.
                        For circles they are identical
                        Note that if the X-Y res differs one still can
                        define perfect circles

FFFF:   [nearest]       see above 65535

This scheme include ellipses and leaves room for 60000+ other shapes and/or

attributes. The [not] and [doubleclick] are region attributes: E.g. the [not rectangle]

is the complement area of [rectangle]. all area outside the rectangle.

It can happend that multiple regions apply (either rectangular or circular, it cannot happen that more regions of type 65535 apply, except if these regions have identical x and y values). This case is undefined, and application code can de whatever it wants with this. Writers should avoid writing clickable area data with overlapping regions because the behavious in such case is not defined.

What to think about a 'nearest point with attracting factor' region type?

define a number of points with a different charge. Gravity.

creates area's.

The ultimate region type is the polygon I guess.

Just for the fun of it, though... ;-)

fun is the grandmother of creativity!

Joris Van Damme
Download your free TIFF tag viewer for windows here: