Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
nokturnal  
#1 Posted : Wednesday, February 19, 2020 4:55:25 AM(UTC)
nokturnal

Rank: Member

Groups: Member
Joined: 3/21/2016(UTC)
Posts: 23

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Hey,

I know this topic is "covered" in the docs but I have come across a strange use case.

I have SVG's with a viewBox that is small. As an example say 200 x 200. (viewBox="0 0 200 200")

If I were to rasterize then resize those SVG's to 500 x 500 it (obviously) becomes extremely pixelated.

My question is, can I resize it while it is still a vector THEN export that resized vector to a raster format (in theory pixelation should be minimal since the resize occurred while it was a vector).

Thanks

Edited by user Wednesday, February 19, 2020 7:07:29 AM(UTC)  | Reason: Not specified

Eugene Kosmin  
#2 Posted : Thursday, February 20, 2020 6:08:13 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hi,

Unfortunately, this is a known issue. There is a problem in the internal combiner which rasterizes vector data without scaling before blending.

As a workaround, you can try to use the GraphicsContainer.Scale method, but it doesn't work well with the pen's width. I suppose we'll add a similar method with a single argument, which will fit your needs.

Sorry for the inconvenience.
Best regards,
Eugene Kosmin
The Aurigma Development Team
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.