Welcome to TalkGraphics.com
Results 1 to 10 of 32

Hybrid View

  1. #1
    Join Date
    Jun 2017
    Posts
    21

    Default Re: How to recolor 16 color image to other 16 color palette?

    Problem with dithering is that I'm not program creator and don't have sources...
    I know that low count color palettes are archaic, but look back ~30 years and you will see what were 16 colors...

    Miro

  2. #2

    Default Re: How to recolor 16 color image to other 16 color palette?

    First step would be to create CGA pallette colours and add them to pallette.
    Then xara should still have ability to export to 16 colour gif or whatever. Its not a bitmap editor though so its not suitable for editing bitmaps.

  3. #3
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,340

    Default Re: How to recolor 16 color image to other 16 color palette?

    I'm not clear on what you are doing - neither 256 x 192 nor 480 x 360 are standard CGA resolutions, but other resolutions were used

    are you emulating CGA graphics on a modern computer?

    I have no idea what a 'near' CGA palette is - details of the IBM CGA standard are outlined here: http://cs.mcgill.ca/~rwest/wikispeed...cs_Adapter.htm

    if you are emulating then you can use a bitmap editor [eg photoshop in index color mode] to change the palette - but depending on the program you may not be able to save/export this below 256 colours, in which case as sculptex said, you can import, then export that way from xara [but you can't edit the bitmap palette in xara just reduce it down]
    -------------------------------
    Nothing lasts forever...

  4. #4

    Default Re: How to recolor 16 color image to other 16 color palette?

    What kind of images are the original images and did you draw those with palette limitations in mind, or converting existing images?

    Reducing palette to 16 freely selected colours is easy but when working with fixed palette you really need dithering to have decent results, as without different shades of colour it must be done by dithering. When you have nice 16 colour image with optimum palette and then just swap the palette to CGA one, your image will be rainbow coloured mess if there is any shading.


    Even with just CGA colour palette without any other limitations, I would actually decrease colour depth to 2bit, or even 1 bit and after that convert back to 4bit and swap the palette. For dithering when decreasing the colour depth can experiment with FS or ordered and then pick one that gives more suitable image, then use no dithering when converting image back to 4bit colour for the full CGA palette.


    Click image for larger version. 

Name:	larry.png 
Views:	163 
Size:	48.1 KB 
ID:	117785
    Click image for larger version. 

Name:	CGA.png 
Views:	180 
Size:	4.8 KB 
ID:	117784
    Last edited by theinonen; 05 June 2017 at 11:37 AM.

  5. #5
    Join Date
    Jun 2017
    Posts
    21

    Default Re: How to recolor 16 color image to other 16 color palette?

    Ok, here's explain:
    Source image is ZX Spectrum bitmap. ZXS has 15 color palette (black has only one level). Colors are very similar to CGA colors (I mean full 16 color palette). I need not to emulate CGA.
    These sources I need to convert to Commodore 128 VDC color palette - again very similar colors like CGA. For best results I need to match exact color - it removes dithering.
    You can now see that in 15 and 16 color palettes is dithering not required - I need convert one palette to second - I need not similar colors, I need exact match to avoid dithering.
    I'm creating ZX Spectrum emulator for Commodore 128. So, when is anything emulated it needs to look like original - and dithering looks different to original.
    If you will need I upload palettes.
    Miro

  6. #6
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,340

    Default Re: How to recolor 16 color image to other 16 color palette?

    it sounds like you should be able to do that in a bitmap editor that handles index tables - if you want to post up the palettes and a source image I can run it through photoshop to test for you
    -------------------------------
    Nothing lasts forever...

  7. #7
    Join Date
    Jun 2017
    Posts
    21

    Default Re: How to recolor 16 color image to other 16 color palette?

    Ok, I'm very thankful.

    Source palette:
    Click image for larger version. 

Name:	source.png 
Views:	245 
Size:	1.5 KB 
ID:	117805
    Target palette:
    Click image for larger version. 

Name:	target.png 
Views:	261 
Size:	1.5 KB 
ID:	117806
    Example:
    Click image for larger version. 

Name:	example.png 
Views:	181 
Size:	5.0 KB 
ID:	117807
    Original image:
    Click image for larger version. 

Name:	original.png 
Views:	169 
Size:	12.9 KB 
ID:	117809
    Converted image:
    Click image for larger version. 

Name:	result.png 
Views:	190 
Size:	20.8 KB 
ID:	117808

    Miro

 

 

Bookmarks

Posting Permissions

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