Open bburan opened 9 months ago
Is there any difference in the usage?
After reviewing ImageView
, there are a few minor differences that suggest making SVGImageView
a separate widget. For example, scale_to_fit
and allow_upscaling
are not relevant for a SVG image. Plus, ImageView
takes an instance of Image
, which is very raster-oriented (e.g., raw_size
, transform_mode
, etc.).
Your analysis makes sense. Would there be any sense to have a kind of abstraction over vector graphics ?
I currently have an implementation that uses RawWidget with QtSvgWidget to display a SVG image. I'm thinking about cleaning this up and contributing to Enaml. Would this be better implemented as an
SVGImageView
widget (as opposed to trying to add support for SVG images toImageView
? I'm guessing a separateSVGImageView
is more appropriate since the characteristics of vector graphics are different from raster graphics. ?Either case, the point is to get feedback before I implement this.