Welcome, Guest. Please login or register.

Author Topic: Opinions please..  (Read 1910 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline OlleTopic starter

  • Newbie
  • *
  • Join Date: Jul 2002
  • Posts: 35
    • Show all replies
Opinions please..
« on: July 03, 2003, 02:29:49 PM »
Ok, so i have done some work with using tools on a screen, like drawing a rectangle to zoom in an area of a picture.

How do i preserve the background while drawing the rectangle?

I would love to use the COMPLEMENT mode, but it then doesn't allow me to use my own colour of the rectangle (as in windows)

So i wrote a class that had routines for storing the background in an virtual screen, and then cutting and pasting, it works but is slow as hell when drawing the rectangle over the whole screen, ofcourse it would be more clever just to store the backgrounds of the four lines, but how do i do it in a nice way?

Perhaps someone knows a better way to do it?

Thanks..


Shut up, bignose!  :-D
 

Offline OlleTopic starter

  • Newbie
  • *
  • Join Date: Jul 2002
  • Posts: 35
    • Show all replies
Re: Opinions please..
« Reply #1 on: July 03, 2003, 03:25:54 PM »
Thanks.. that was exactly what i needed.. ;)

I have been working too much with windows development so my brain is totally wrecked. :-D

Your solution is so obvious and clever.

Thanks m8...
 
Shut up, bignose!  :-D
 

Offline OlleTopic starter

  • Newbie
  • *
  • Join Date: Jul 2002
  • Posts: 35
    • Show all replies
Re: Opinions please..
« Reply #2 on: July 07, 2003, 11:16:14 PM »
Yepp, i have done it exactly this way and it works..  ;)

Almost...

When i have alot of colours on the screen and then draw my rectangle the background changes to another colour instead of preserving the original, even though i've set it as in the autodocs, for all planes like this...

BltBitMap(srcbmp,srcx,srcy,dstbmp,dstx,dsty,width,height,0xC0,0xFF,NULL);

This should ensure that all planes should be copied shouldn't it?

Note i run this through WinUAE since my std amiga doesn't allow higher rez than 640*480..

Any ideas?
Shut up, bignose!  :-D