-
- schragnasher
- Posts: 33
- Joined:
Nine Slice Image issues
Ok here is a odd one for you...
I have 2 images with the same content, one of them i duplicated your nineslice example image and replaced its content in GIMP with my chat bubble, the other image was generated from scratch in GIMP. When using them in the same nine slide xaml i get different effects, the image which i edited the example works perfectly, the gimp generated image is broken (edges cut off), iv matched the unity import settings for both images. I can see from teh files that they are very different sizes, are there specific settings i need to use?
I have 2 images with the same content, one of them i duplicated your nineslice example image and replaced its content in GIMP with my chat bubble, the other image was generated from scratch in GIMP. When using them in the same nine slide xaml i get different effects, the image which i edited the example works perfectly, the gimp generated image is broken (edges cut off), iv matched the unity import settings for both images. I can see from teh files that they are very different sizes, are there specific settings i need to use?
Code: Select all
<Grid Width="200" Height="150">
<noesis:NineSlice Image="../../_Textures/GUI/GimpChatBubble.png" LeftSlice="0" RightSlice="0" TopSlice="0" BottomSlice="0"/>
</Grid>
- Attachments
-
- Examples.png (9.97 KiB) Viewed 1833 times
-
- Edited NineSlice Example File
- ExampleChatBubble.png (4.33 KiB) Viewed 1833 times
-
- Made With Gimp
- GimpChatBubble.png (1.75 KiB) Viewed 1833 times
-
-
sfernandez
Site Admin
- Posts: 3222
- Joined:
Re: Nine Slice Image issues
The difference between both images is in the DPI resolution. The GIMP image has 103 dpi, and our image is 96 dpi.
I have to check the behavior in WPF to ensure we are rendering correctly the image brush, meanwhile you can use always 96 dpi images.
I have to check the behavior in WPF to ensure we are rendering correctly the image brush, meanwhile you can use always 96 dpi images.
Who is online
Users browsing this forum: Google [Bot], Semrush [Bot] and 3 guests