Page 1 of 1

StaticImage: image is 'smeared' [solved]

Posted: Sat Mar 25, 2006 12:40
by pfo
I'm having trouble loading an image. I defined an imageset like this:

<?xml version="1.0" ?>
<Imageset Name="WorldEditor" Imagefile="MyWorld_Colormap.Small.png" NativeHorzRes="256" NativeVertRes="256" AutoScaled="false">
<Image Name="MyWorld" XPos="0" YPos="0" Width="256" height="256" />
</Imageset>

And then in a layout, I load it like this:

...
<Window Type="TaharezLook/StaticImage" Name="MapImage" >
<Property Name="UnifiedAreaRect" Value="{{0.1,0},{0.1,0},{0.1,256},{0.1,256}}" />
<Property Name="BackgroundEnabled" Value="False" />
<Property Name="FrameEnabled" Value="False" />
<Property Name="Image" Value="set:WorldEditor image:MyWorld" />
</Window>
...

My image appears 'smeared', it's solid lines of color forming a gradient going from left to right. The colors seem correct (based on the image colors) but somehow the image file is getting messed up. I tried using a .tga and that didn't help. I checked the rest of the forum and couldn't find anyone else reporting this problem. Any suggestions?

Posted: Sat Mar 25, 2006 13:06
by pfo
Yeah, that 'H' in height should be capitalized in the imageset definition.. guess I should have looked at that one a little longer...