Converting Scaled Vector Graphics Object to Raster Texture (Sprite) #11399
Unanswered
SchrodingersCpp
asked this question in
v8 General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pixi v8
allows rasterization of SVG images with any resolution. Like here:But suppose we load an SVG and we don't know its
width
andheight
parameters beforehand. And we want to rasterize it, so the finalTexture
was of certain width and height (in pixels). I tried converting aGraphics
vector object to aTexture
(see here) by firstly scaling theGraphics
but that didn't work. Cannot figure out how to do that.Beta Was this translation helpful? Give feedback.
All reactions