Canvas drawing and web gadget

Just starting out? Need help? Post your questions and find answers here.
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Canvas drawing and web gadget

Post by collectordave »

I am using a canvas gadget to display an image using the following code.-

Code: Select all

StartVectorDrawing(CanvasVectorOutput(CanvasPageDesign,#PB_Unit_Millimeter))
MovePathCursor(40,40)
DrawVectorImage(ImageID(0),255,100,40) 
StopVectorDrawing()
This works well, the image is placed 40mm in and 40mm down and is the right size.

I wat to recreate this on a web page using HTML and have tried the following:-

Code: Select all

<img style="border: medium none ; position: absolute; top: 40mm; left: 40mm; width: 100mm; height: 40mm;" rytr="" src="558.jpg">
This also woks in that the image is displayed but all measurements are smaller approx 90%.

I have tried this with the web gadget and also as a file loaded into Firefox.

Both show the same.

Am I missing something on the HTML side?
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.