filling Pixmap with an rgb array - Xwindows

This is a discussion on filling Pixmap with an rgb array - Xwindows ; Hi, What is the best way (quickest) to initialize a newly created pixmap with colors coming from an int array ? using XDrawPixel for each point is slow. is there not a better way ? pierre...

+ Reply to Thread
Results 1 to 2 of 2

Thread: filling Pixmap with an rgb array

  1. filling Pixmap with an rgb array

    Hi,

    What is the best way (quickest) to initialize a newly created pixmap
    with colors coming from an int array ?
    using XDrawPixel for each point is slow. is there not a better way ?


    pierre


  2. Re: filling Pixmap with an rgb array

    In comp.windows.x, craouette

    wrote
    on 28 Jan 2007 14:42:29 -0800
    <1170024149.652497.150380@j27g2000cwj.googlegroups. com>:
    > Hi,
    >
    > What is the best way (quickest) to initialize a newly created pixmap
    > with colors coming from an int array ?
    > using XDrawPixel for each point is slow. is there not a better way ?
    >
    >
    > pierre
    >


    You might consider using XImage calls.

    --
    #191, ewill3@earthlink.net
    Windows. When it absolutely, positively, has to crash.

    --
    Posted via a free Usenet account from http://www.teranews.com


+ Reply to Thread