schragnasher
Topic Author
Posts: 33
Joined: 07 Mar 2015, 01:58

Nine Slice Image issues

11 May 2015, 04:05

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?
<Grid Width="200" Height="150">
   <noesis:NineSlice Image="../../_Textures/GUI/GimpChatBubble.png" LeftSlice="0" RightSlice="0" TopSlice="0" BottomSlice="0"/>
</Grid>
Attachments
Examples.png
Examples.png (9.97 KiB) Viewed 1084 times
ExampleChatBubble.png
Edited NineSlice Example File
ExampleChatBubble.png (4.33 KiB) Viewed 1084 times
GimpChatBubble.png
Made With Gimp
GimpChatBubble.png (1.75 KiB) Viewed 1084 times
 
User avatar
sfernandez
Site Admin
Posts: 1912
Joined: 22 Dec 2011, 19:20

Re: Nine Slice Image issues

11 May 2015, 14:09

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.
 
schragnasher
Topic Author
Posts: 33
Joined: 07 Mar 2015, 01:58

Re: Nine Slice Image issues

12 May 2015, 14:55

96dpi solved the problem. Thank you.

Who is online

Users browsing this forum: No registered users and 1 guest