Portrait/Landscape mode, and scaling

GTT TFT Support

Moderator: Mods

Post Reply
Lenny
LCD!
Posts: 15
Joined: Mon Jul 03, 2006 5:43 pm
Location: Wellington, New Zealand
Contact:

Portrait/Landscape mode, and scaling

Post by Lenny »

Hi,

Are there plans to introduce a portrait/landscape command? ie - rotate everything 90 degrees.

Also, been having a quick look at scaling bitmaps - assume I can use the 9-slice feature for this?
Basically, I want to be able to load a map of an area, zoom in and scale the zoomed in area to fit the screen.

Cheers folks,
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.

Tino
Matrix Orbital
Matrix Orbital
Posts: 158
Joined: Wed May 22, 2013 9:04 am
Location: Matrix Orbital

Re: Portrait/Landscape mode, and scaling

Post by Tino »

Hi Lenny,

A portrait/landscape command is not planned in the near future. Although you could accomplish this by rotating your images before uploading them to the display.

The 9-Slice feature wouldn't accomplish this.
This is also a feature that is not been planned in the near future to make it possible to zoom and scale a bitmap.
This can be done with separate bitmaps though. One of the Zoomed out area and a image of the area zoomed in.

Thank you for posting on our forums.
Regards
Martino
Martino DeLeon
Matrix Orbital
Technical Support Representative

ChrisGoodsell
LCD?
Posts: 1
Joined: Fri Jun 24, 2016 3:46 am

Re: Portrait/Landscape mode, and scaling

Post by ChrisGoodsell »

Hi.

I was just wondering if there is any (new) plans for the portrait/landscape mode? At the moment I'm using rotated images and the UpdateLabel functions to rotate text.

Is there any possible way to rotate text for the entire display rather than using labels?

Many thanks.

Daniel Divino
Matrix Orbital
Matrix Orbital
Posts: 247
Joined: Thu Sep 24, 2015 9:38 am

Re: Portrait/Landscape mode, and scaling

Post by Daniel Divino »

Hello Chris,

Welcome to the forums!

At the moment, we have no plans of allowing the text window to rotate. During testing, we found that scrolling the text at angles would take a long time to render, resulting in an overall slow update.

That said, many of the object commands do allow a user to specify which direction they would prefer. Also, like you said, images can be rotated prior to being loaded onto the display.

So though it may be a little bit more of a hassle, developing for the GTT in portrait mode is possible.

Cheers,
Daniel
Daniel Divino
Technical Support
Matrix Orbital

Daniel Divino
Matrix Orbital
Matrix Orbital
Posts: 247
Joined: Thu Sep 24, 2015 9:38 am

Re: Portrait/Landscape mode, and scaling

Post by Daniel Divino »

Hello Chris and Lenny,

After re-visiting the idea of including a dedicated Portrait mode on the GTT, we found that the time needed to render rotated images and text is not as bad as it once was. This may be due to the firmware growing more efficient with each revision.

With the faster rendering speed, we have implemented a new command in firmware R2.5.0.7838 to set the GTT orientation.

The Set Panel Orientation (254 50) command can be used to set the orientation of the GTT screen. By default, the GTT will be set to landscape mode, but you now have the option to set the orientation to landscape, landscape flipped, Portrait, or Portrait flipped.

You can find the new GTT firmware on our support site at https://matrixorbital.ca/f/gtt-rev2-0

We hope that the inclusion of this command will make GTT project development much quicker and easier.

Cheers,
Daniel
Daniel Divino
Technical Support
Matrix Orbital

Post Reply