TEI-L@LISTSERV.BROWN.EDU

View:

 Message: [ First | Previous | Next | Last ] By Topic: [ First | Previous | Next | Last ] By Author: [ First | Previous | Next | Last ] Font: Proportional Font

Subject:

Re: grouping/typing graphics in facsimile

From:

Date:

Fri, 7 Jan 2011 16:31:55 +0100

Content-Type:

text/plain

Parts/Attachments:

 text/plain (55 lines)
 ```On 07.01.2011 13:47, Torsten Schassan wrote: > - If surface is used with coordinates, how does this relate to the fact > that the included graphic elements represent different resolutions? Is > it (could it be) meant as "base size" against which the resolutions have > to be computed? Relative coordinates like in the given example nearly nullify the resolution problem. If needed, absolute coordinates can easily be calculated from image dimension and relative coordinates.     xAbs = xRel * imageWidth     yAbs = yRel * imageHeigth Let's say the example's #lowRes image is 320x240, #highRes 640x480: #lowRes:     ulxAbs = 0.100 * 320 = 32     ulyAbs = 0.200 * 240 = 48     lrxAbs = 0.400 * 320 = 128     lryAbs = 0.100 * 240 = 24 #highRes:     ulxAbs = 0.100 * 640 = 64     ulyAbs = 0.200 * 480 = 96     lrxAbs = 0.400 * 640 = 256     lryAbs = 0.100 * 480 = 48 For instance, if you draw rectangles using the absolute coordinates on both images they will span the same regions. :) This works even if the aspect ratio differs for some reason. Regards, Fabian.                      -- Berlin-Brandenburgische Akademie der Wissenschaften DFG-Projekt "Personendatenrepositorium" Fabian Körner Jägerstrasse 22/23 10117 Berlin http://www.bbaw.de eMail [log in to unmask] phone +49 (0)30 20370 285 ```