BCB Components rotating around DirectX

Welcome to BCB-Tools.com Latest News

Development Tools Demo Applications Step-By-Step Tutorials Component Reference

Register Here Available Downloads

Frequently Asked Questions Discussion Forums Receive emails from BCB-Tools.com Send us some Feedback

Links to other sites Information about the BCB-Tools.com website


    FORUM MESSAGE
    Go to the Welcome Page
        FORUM MESSAGE

    You are reading a General forum message.

    Re: Color Palette

    Author: Darren Dwyer

    Date Posted: 2005-06-23 17:31:01



    We've not yet implemented a palette load/save function for the TDx_Draw_Library.
    Usually you save the palette into a file called a .PAL file, with the file format you specify, as there does not appear to be a "palette file standard" that can be used.

    Usually, you just :-

    OpenFile( file );
    for (int i=0;i<num_palette_entries;i++)
      {
      WriteToFile( file, pallete.r[i] );
      WriteToFile( file, pallete.g[i] );
      WriteToFile( file, pallete.b[i] );
      }
    CloseFile( file );

    - hope this helps,
    - darren
    - bcb-tools.com





    REPLY TO THIS MESSAGE?
    Top    

    You can post a reply to this General message using the form below:
    Your Name:


    Message Subject:


    Message Body:


    Verification:





    When ready, click on the submit button below:






Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Forums |  Feedback |  Mailing List |  Links |  Site Information

This page is Copyright © 2007 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are Trademarks of Borland Corporation.
DirectX, DirectDraw, Windows, etc are Trademarks of Microsoft Corporation.