I have two images, which are intended to illustrate the problems of scale.
left = scale factor 1
right = scale factor 2
problem 1
Symbol, the symbol here is not scaled!
Area shader bitmap
Also the shader bitmap is not scaled for an area.
DashPathEffect
The distances between the DashPathEffect should be scaled.
Text
I'm not quite sure, but I think that here the thick font and the thickness of the border also do not quite fit!
First, I think that the class DisplayModel should be completely static, so you can access the values from each class out.
Furthermore, the bitmap interface should implement the method boolean mustSscale ().
If I want to provide a Patch to what source should I take here?
Greeting Andre
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/25bcd599-d36b-4610-ac64-b7f263933fc6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You are right, but there are many themes which are not running with SVG.
I think here it is nevertheless necessary to scale!
I would try here to keep the changes as small as possible.
But on what basis? (Which repository?)
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/3dfd755c-9cc9-42ae-93c0-f3e63adf7032%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/9ceb2a72-b7f4-4082-82b5-56b004514daf%40googlegroups.com.
e.g. Maki's Tiramisù theme has 3 versions that differ only at symbol size
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/551bc16c-41f4-4bed-965f-494191e4b459%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/ecc2bbab-89dc-41cb-9024-14f6f13bfb52%40googlegroups.com.
To test this, Maki, I would like to take up your offer of producing SVG files for some textures. In the internal render theme we have textures for different types of forest, parks, military etc, but I am pretty sure that you could produce better looking textures (so do not take them as a starting point, they were chosen because they were there, not because they looked good).
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/57d06e31-94ed-4b72-8841-c0815ef4adbe%40googlegroups.com.
Sorry, but I no longer savvy.
What is now the branch should I test?
mapsforge / rescue
or
ludwigbrinckmann-mapsforge/rescue
or at least
ludwigbrinckmann-mapsforge/rescue-exp
I have now tried many days to find a good solution.
I think that the proper place for the processing of a possible scaling is the CanvasRasterer , since virtually all drawing tasks to be done.
That's why I passed on the constructors of DatabaseRenderer and CanvasRasterer the current DisplayModel.
Here it can be decided then for each task, whether scales must be.
In my patch I did this once implemented only for the symbols , since I do not know if you are agree or may have another solution.
In order to decide whether a symbol has to be scaled, I have the interface Bitmap passed a new method signature. { boolean mustScale () }
In the individual derivatives can now be scaled the decision be given back .
For instance, a AndroidSvgBitmap not be scaled and always returns False .
The other bitmap derivatives give only returns a true if they were not scaled about scaleTo ().
I have created the patch here only for the core. To create an instance of the DatabasRenderer in Android and AWT as samples has yet to be made . This I have not in my Eclipse.
Greeting Andre
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/8254a7d3-c326-4743-95c6-894e7345e9e4%40googlegroups.com.
My assumption is that some people have learned to live with the current implementation and I am a bit wary of changing the scaling behaviour of the icons just before a release. The render theme v4 should have additional attributes to trigger scaling of pngs if that is desired.