Hello,
i want to create Legend Codes with images based on a specific Norm. I already created some and added the images. My problem is, that i dont know in which size i need to have the images so they are displayed correctly in the log, like the ones from Bentley. I already found some information in the "How To Use Color Coding for Material Graphics". There the images for the colors are 100*60 pixels. But they look a little bit smaller than the pattern-based graphics. For a filled graphic its not important, because it does not have an effect on the scaling, but it has for the pattern-based graphics. I just cant find out the size from those existing images. Can anyone help?
Hey Jesse,I tried different things and in case of having the wrong width I created different images.The image size is in the picture (pixels).The numbers and the images do not matter, its just for testing.I really want to understand why its behaving like this.I added some default images for comparison.If I go with How To Add Hatch Patterns to New Geologies - OpenGround Wiki - OpenGround | gINT | Keynetix - Bentley Communities ,the image size of the default ones is 100x40. So my images in 100x40 (or 40x100 in case i got it wrong) should be displayed like the default ones. But they arent. In "Fit to width" you can argue that its stretched the same way, but why is it without "fit to width" so different.The only image thats getting similar results like the default without "fit to width" is the 100x100, but only with "fit to width".Because this is a template i created just for testing i made the graphics bar cloumn 10mm wide so each image with 84 pixels width should fit. Like mentioned here communities.bentley.com/.../how-do-material-symbols-legend-codes-work .But the one with 84 pixels doesnt fit either way, but the default 100x40 reacts perfectly to the column size without "fit to width".Its just very confusing. And without knowing how exactly this works and should be done, I cant create a Picklist for the norms of Germany.Sadly there are none in OpenGround yet.I hope this is understandable and someone can may help. Thanks for your effort anyway so far!
Hi Daniel, it's hard to say. Would it be possible to upload your image file and some screen shots of your graphics bar. And just to make sure... is the width of the image 100 pixels?
Sadly the problem still persists. I created an image with 100x40 pixels like metioned here (How To Add Hatch Patterns to New Geologies - OpenGround Wiki - OpenGround | gINT | Keynetix - Bentley Communities). Its displayed in the log, but there is no difference to before. Its still almost 4 times smaller and you can imagine what it looks like compared to the "default" ones in the graphics bar. Even if i create a graphics bar dependent on the image size, its still stretched. Ticking the box "FitToWidth" is stretching the image in both variants too. Am I missing something?
Very helpful too, thanks!
This article has a bit more info too about different image sizes:
communities.bentley.com/.../how-do-material-symbols-legend-codes-work