Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 23:37 16 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : GUI Bitmap command (V5.3B10 and V5.2)r)

Author Message
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 02:55am 24 Jan 2017
Copy link to clipboard 
Print this post

Has anyone noticed this before?
I have an ILI9341 LCD panel set up in LANDSCAPE mode (320x240). If I do:

LINE 0,0,100,0
I get the expected top row horizontal line (along the screens long axis).

Now, trying out the GUI BITMAP command which has the format:
GUI BITMAP X, Y, BITS, WIDTH, HEIGHT, SCALE, C, BC (the last five parameters can be defaulted)

If I do:

x% = 1
GUI BITMAP 0,0,x%
I get the expected single pixel in the 8th position on the top row. Note that the width and height parameters are defaulted, i.e. 8,8 i.e. a square region.

If I do as above but change the width and height parameters to 32,1 i.e.
GUI BITMAP 0,0,x%,32,1
I get a single pixel in the 8th position down the screen (along the short screen direction).

Question is - should the WIDTH and HEIGHT parameters be swapped in landscape mode or is this a bug? If the former, then we need a note to that effect on page 22 of the Manual and the same in the command definition table.

Greg
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8603
Posted: 05:01am 25 Jan 2017
Copy link to clipboard 
Print this post

Greg

This is definitely a bug - I've reported it to Geoff offline
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 09:02pm 28 Jan 2017
Copy link to clipboard 
Print this post

Thanks for that Peter - sorry I took three days to get back to you, I missed your post somehow.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024