Vectors in Pictures

Pardon my clumsy wording (I’m a hobbyist, mostly) so I may be stating this awkwardly but here’s my problem: I cannot get a stringshape into a picture that keeps its vector aspect. IOW, when I stretch the picture, it pixelates.

Here’s what I’ve done that hasn’t worked:

  1. Created a stringsshape
  2. Drew into a Picture using DrawObject
  3. Tried printing the Picture in a PDF and enlarging.

Result: Pixelation.

If I draw the stringshape directly to g (graphics), it works. But once I draw into a picture, it loses its vectoricity. :slight_smile:

I’d appreciate, as always, any help along these lines. I’ve read the documentation, looked at the examples, etc. I’m just, as they say, “not there yet.”

Once you “draw it into a picture” it is no longer a vector (#2) it is then subject to the resolution of the picture itself

Take a look at gPDF (www.rdS.com/gPDF) this allows you to directly create a PDF using normal Xojo graphic commands
There was ONE of the Object2D commands that didn’t get implemented, but I don’t recall StringShape being an issue

Ah. That explains it. I will look at gPDF for sure. Meanwhile, I’m going to recode the entire giantic Pictures-within-a-Picture code that I wrote which, incidentally, works well for screen purposes.

Thanks.

Oh, how about if I increased the picture’s resolution? (Well, I guess I could just try it out.)

[quote=451694:@Dave S]Once you “draw it into a picture” it is no longer a vector (#2) it is then subject to the resolution of the picture itself

Take a look at gPDF (www.rdS.com/gPDF) this allows you to directly create a PDF using normal Xojo graphic commands
There was ONE of the Object2D commands that didn’t get implemented, but I don’t recall StringShape being an issue[/quote]

I’m getting a 404 error on the link.

http://www.rdS.com/gpdf/index.html

stupid case sensitive server :slight_smile:

post in private an email address and I’ll send you the demo

You can check Graphics Integration in MBS DynaPDF Plugin:

https://www.mbsplugins.de/archive/2019-05-06/Create_a_PDF_with_PageGraphics
and
https://www.mbsplugins.de/archive/2019-05-06/Create_a_PDF_with_PageGraphics

We support vector graphics directly into a pdf graphics.