Static Image and "strange" scaled images.

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
supersayajinbr
Just popping in
Just popping in
Posts: 2
Joined: Sat Jan 28, 2006 02:22
Location: Brazil

Static Image and "strange" scaled images.

Postby supersayajinbr » Thu Mar 01, 2007 21:38

Good afternoon.

First, sorry for my bad English. It's not my mother language.

Well, I getting a trouble displaying a StaticImage with a 1024x768 texture.
The texture seems to be scaled in vertical more than the size of the window.

This screen shows the problems.

Image


Here my .layout (the part of interests)


Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<GUILayout>
   <Window Type="DefaultWindow" Name="Root_BookHistoriaFF1" >
      <Property Name="InheritsAlpha" Value="False" />
      <Property Name="UnifiedAreaRect" Value="{{0.000000,0.000000},{0.000000,0.000000},{1.000000,0.000000},{1.000000,0.000000}}" />
      <Property Name="UnifiedMaxSize" Value="{{1.000000,0.000000},{1.000000,0.000000}}" />

      <Window Type="DialogoM/StaticImage" Name="fundo" >
         <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
         <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />         
         <Property Name="FrameEnabled" Value="False" />      
         <Property Name="Disabled" Value="True" />
         <Property Name="Visible" Value="True" />            
      </Window>
      <Property Name="Visible" Value="True" />         
      <Property Name="Disabled" Value="True" />
   </Window>
</GUILayout>


And here is my imageset:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<Imageset Name="BiologiaFF1" Imagefile="2book.jpg" AutoScaled="false" >
<Image Name="Fundo" XPos="0" YPos="0" Width="1024" Height="768" />
</Imageset>


I tryed to change values of UnifiedAreaRect and UnifiedMaxSize from the static/image but it didn't work.

Can someone help-me?

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Thu Mar 01, 2007 21:58

Hi and welcome :)

Your application window is probably less hight then 768, right? Since the imageset has this option: "Autoscaled=False" i think that's the cause. You can try to make your window bigger or change the setting to: "Autoscaled=True" as a test.

HTH.

User avatar
supersayajinbr
Just popping in
Just popping in
Posts: 2
Joined: Sat Jan 28, 2006 02:22
Location: Brazil

Postby supersayajinbr » Fri Mar 02, 2007 17:36

scriptkid wrote:Hi and welcome :)

Your application window is probably less hight then 768, right? Since the imageset has this option: "Autoscaled=False" i think that's the cause. You can try to make your window bigger or change the setting to: "Autoscaled=True" as a test.

HTH.


Nop, it didn't word :(

I tryed to set Autoscaled=true and setting resolution to 1024x768. But it didn't work.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 15 guests