• AVR Freaks

Helpful ReplyHot!HGC transparency[Solved]

Author
pandaexpress
Starting Member
  • Total Posts : 48
  • Reward points : 0
  • Joined: 2019/01/17 18:39:29
  • Location: 0
  • Status: offline
2019/01/29 15:38:41 (permalink)
0

HGC transparency[Solved]

Hi all,
 
Im working with harmony 2.04 and HGC for graphics Im also using GLCD driver with a PIC32MZ. The problem im facing is that im loading a BMP with an alpha layer but all the transparency in being showed as a red layer instead of transparent, does anybody know whats the problem here? I dont have any issue with BMP's without alpha layer.
 
 
Thanks
post edited by pandaexpress - 2019/01/30 11:13:38
#1
MHGC
Super Member
  • Total Posts : 220
  • Reward points : 0
  • Status: offline
Re: HGC transparency 2019/01/29 16:12:49 (permalink)
0
Hi,
 
The Graphics Asset Converter that is part of the Harmony Graphics Composer only supports 24-bit RGB888 BMPs. 
 
Is the alpha channel information critical in the picture critical to your design?  If not, obviously, I would recommend down-converting the original image to 24-bit BMPs and re-import into MHGC. 
 
If it is, you may want to consider converting the image to PNG.  Keep in mind, the PNG runtime decoder that comes with the Harmony Graphics stack requires sizable dynamic memory.
#2
pandaexpress
Starting Member
  • Total Posts : 48
  • Reward points : 0
  • Joined: 2019/01/17 18:39:29
  • Location: 0
  • Status: offline
Re: HGC transparency 2019/01/29 17:16:21 (permalink)
0
And what about PNG is it supported ARGB 8888 ?
#3
MHGC
Super Member
  • Total Posts : 220
  • Reward points : 0
  • Status: offline
Re: HGC transparency 2019/01/30 08:33:07 (permalink) ☄ Helpfulby pandaexpress 2019/01/30 11:13:11
0
PNG ARGB8888 is supported by the runtime decoder.  However, the decoder requires a larger heap to run.  It will work well with images with lower resolution (roughly less than a thousand total pixels). The MHGC has a built-in heap estimator to help you determine the heap required
 
However, you may still have to do a little bit of trial and error on actual hardware to see if the heap is large enough to render the image.
#4
pandaexpress
Starting Member
  • Total Posts : 48
  • Reward points : 0
  • Joined: 2019/01/17 18:39:29
  • Location: 0
  • Status: offline
Re: HGC transparency 2019/01/30 11:13:18 (permalink)
0
thanks
#5
Jump to:
© 2019 APG vNext Commercial Version 4.5