Scale / Shrink a XImage? - Xwindows

This is a discussion on Scale / Shrink a XImage? - Xwindows ; Hello all, i have image informations as XImage. Now my problem is that i should shrink this. As example i have a image with 1024x768 but i need it as 800x600. Is there any "simple" way to shrink this image ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Scale / Shrink a XImage?

  1. Scale / Shrink a XImage?

    Hello all,
    i have image informations as XImage. Now my problem is that i should
    shrink this. As example i have a image with 1024x768 but i need it as
    800x600. Is there any "simple" way to shrink this image down to
    800x600?

    Best Regards,

    flo


  2. Re: Scale / Shrink a XImage?

    On 2007-10-19, mich1985 wrote:
    >
    > Hello all,
    > i have image informations as XImage. Now my problem is that i should
    > shrink this. As example i have a image with 1024x768 but i need it as
    > 800x600. Is there any "simple" way to shrink this image down to
    > 800x600?


    If by simple you mean "by calling an Xlib function", then no. You must
    downsample the image yourself, and create a new XImage for the new
    pixels.

    --
    John Tsiombikas (Nuclear / Mindlapse)
    http://nuclear.sdf-eu.org/

+ Reply to Thread