Re: Displaying svg image with WebKit - scaling issues
Re: Displaying svg image with WebKit - scaling issues
- Subject: Re: Displaying svg image with WebKit - scaling issues
- From: Peter Zegelin <email@hidden>
- Date: Sun, 23 Aug 2009 11:07:13 +1000
Too Easy! Works perfectly in the MiniBrowser demo project.
Many thanks!
Peter
On 23/08/2009, at 1:15 AM, Jean-Daniel Dupas wrote:
Le 22 août 2009 à 16:27, Peter Zegelin a écrit :
Hi,
I would like to display a simple svg image in my app using webkit.
Unfortunately I also need to be able to scale the image to the size
of the view. The webview class has makeTextLarger and
makeTextSmaller which works, but limits the scaling to about 10
'steps'. Apparently you can do scaling with a CSS transform, but I
have no idea how to do this. Does anyone have an example?
thanks!
You can display it in a simple HTML page with a single image whose
width is 100%
<html>
<head>
<title>SVG Image</title>
</head>
<body style="margin: 0px">
<img style="width: 100%" src="test.svg" alt="">
</body>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden