Bibhu,
What I do when I want to manipulate a bitmap is load it into one of
the non-visible screens and then do a hardware or software 'bitblit'
to the screen being manipulated. I've not taken my windows laptop
home from work (I'm currently updating my linux laptop to Kubuntu
7.10), so I can't post my blit code, but using a version of it you
can do any transformations of the original image as it is copied
across.
I use two screens for the main display for the application - the
currently visible screen and the one being drawn for display next -
an switch between them when a screen draw has been completed. This
leaves six screens for storage of bitmap, font, etc data.
The hardware blit can only move copies of the image, but my soft blit
routine can be modified to manipulate the image is required. I'll
post it as soon as I get back to my other laptop.
What do yo mean by 'invert'? Do you mean flip horizontally,
vertically, or do a color modification?
Regards,
PJE
--- In "bibhu" <> wrote:
>
>
> Hi Peter,
>
> What would be the simplest way to invert the image we are
displaying ?
> Instead of printing line by line, I tried storing writelen in a
bigger
> array and then wrote it to fp_out. However, this gave me two images
> instead of one. It replicated the image. The height and width
basically
> were halved.
> The image was straight though.
>
> Thanks,
>
> Bibhu
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|