Digole
©DIGITAL
SOLUTIONS

Serial Display emulator    New Display User manual

Forum login or
Login:
Password:
  
Forum Catagory
Digole Serial Display (210)
  12864 LCD/OLED module (22)
  24064 LCD module (3)
  Color LCD Modules (27)
  Color OLED module (20)
  Online Emulater (5)
  Universal GLCD module (1)
  Universal Text LCD module (2)
Mini Display Panels (0)
  Mini LCDs (0)
  Mini OLEDs (0)
Pattern Drive Module (0)
~Buy & Sell on Digole (2)
~Others~ (5)
Forum : Digole Serial Display :

 Search Forum.. 
 Creat New Topic   Reply 

Graphic functions

 I ha a problem with a function... I wanna use this:

 

Draw a Filled  Rectangle, 4 B are: X,Y(left top), X,Y (right bottom).
 
drawBox(x,y,width,height);
 
to write a box from  (left-bottom) to (right-top)... 
 
How can I do it???

RE:Graphic functions

 you need convert the 2 cordinates to left-top/right-bottom format, if your current format is left-bottom/right-top: (Xleft, Ybottom)/(Xright,Ytop), then use (Xleft,Ytop)/(Xright,Ybottom):

drawFrame(Xleft,Ytop,Xright-Xleft,Ybottom-Ytop);

Copyright Digole Digital Solutions/Digole Technologies Inc., 2008-2024. All rights reserved.
Powered by Digole