Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Need help with gradient in background image.
« previous next »
  • Print
Pages: [1]

Author Topic: Need help with gradient in background image.  (Read 683 times)

Offline gama

  • Member
  • *
  • Posts: 26
Need help with gradient in background image.
« on: January 26, 2022, 04:10:08 PM »
Hello, I am working on a 1080x1920 cabbiev2 theme that I will include in a patch I am working on.

I have created a 1080x1920 backdrop image, with a gradient similar to the ones already present in the backdrop folder,
using inkscape.  I then export a png image which I then convert to bmp using gimp as 24 bit image.

The image displays correctly on the sdl app, but some colors are messed up when displaying it in an android phone.

Looking at the android sources, I found this:

Code: [Select]
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height)
    {
        btm = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);
        setEnabled(true);
    }

The surface bitmap is configured as a rgb_565 image, Is that the reason why the image is displayed incorrectly?

Can someone help me to create a correct image or is it possible to configure the surface bitmap as rgb8888 in the android port?
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Need help with gradient in background image.
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.116 seconds with 22 queries.