×

Discussion Board

Results 1 to 4 of 4

Thread: Colours

  1. #1
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    165

    Colours

    I have a PNG file that just contains a single colour (black font), how easy is it to change the black colour to another colour and generate different coloured fonts?

    Basically I load in the PNG as raw data before creating an image from it, could I change the palette entry before I convert it to a PNG and expect this to work?

  2. #2
    Registered User
    Join Date
    Apr 2005
    Posts
    16

    Re: Colours

    Yes you can - go and read up on the PNG file specification - one point to note, make sure you update the CRC check for the palette too!

  3. #3
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    165

    Re: Colours

    Yeah, I figured this yesterday and got it working so I can generate as many run-time variations as I need. Didn't realise about the CRC. What would happen if I didn't change that? My system works on the emulator and hardware, my worry is would it work on all hardware.

  4. #4
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    165

    Re: Colours

    I'll answer my own question on this, yes it does mattter on some handsets.

    Some are fine with it, other crash. I have also noticed similar problems when using PNGOUT, some of the graphics it outputs are not liked by some handsets. certain Nokia 6230 models for instance.

Similar Threads

  1. Weird colours on the Nokia 6680
    By drakest1 in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2007-11-27, 12:29
  2. Weird icon colours on Nokia 6680
    By drakest1 in forum General Development Questions
    Replies: 7
    Last Post: 2006-04-21, 21:55
  3. theme Editor Text Colours (help!)
    By despair89 in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-03-31, 05:54
  4. Series 60 emulator is not showing colours
    By carter_chen1997 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2005-01-03, 10:39
  5. No choice of colours with 5100???
    By jjbutler88 in forum General Development Questions
    Replies: 0
    Last Post: 2003-09-14, 19:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •