Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
efficient way to compare 2 images?
#58
(11-20-2022, 05:28 AM)madscijr Wrote: That's kind of brilliant, but how do you put an image with XOR??
Must do it with the old "PUT" command, not with "_PUTIMAGE", which is more limiting and requires the programmer to create a large buffer for the image, instead of "managing" with a long-integer handle and extracting a small section of a picture perhaps too large to fit into the screen.

Cannot flip nor stretch with "PUT"; however, "_PUTIMAGE" could only replicate what's in a graphics buffer, it's programmed like that for speed.

Maybe it is better to use "AND" attribute instead with "PUT". Then the images would have to be closely related, with one being the "mask" of the other. Something like having full-white pixels in order to preserve any element of the "busier" image, and jet-black to delete.

From:

https://qb64phoenix.com/qb64wiki/index.p...statement)

Quote:If no color action is listed after the image array, the action will be assumed to be the default XOR.
Reply


Messages In This Thread
efficient way to compare 2 images? - by madscijr - 11-18-2022, 07:51 PM
RE: efficient way to compare 2 images? - by bplus - 11-18-2022, 08:10 PM
RE: efficient way to compare 2 images? - by Pete - 11-18-2022, 08:26 PM
RE: efficient way to compare 2 images? - by Pete - 11-18-2022, 08:55 PM
RE: efficient way to compare 2 images? - by Pete - 11-18-2022, 09:30 PM
RE: efficient way to compare 2 images? - by Pete - 11-18-2022, 09:52 PM
RE: efficient way to compare 2 images? - by Pete - 11-18-2022, 11:08 PM
RE: efficient way to compare 2 images? - by bplus - 11-18-2022, 11:40 PM
RE: efficient way to compare 2 images? - by bplus - 11-19-2022, 12:22 AM
RE: efficient way to compare 2 images? - by bplus - 11-19-2022, 01:22 AM
RE: efficient way to compare 2 images? - by bplus - 11-19-2022, 05:39 PM
RE: efficient way to compare 2 images? - by bplus - 11-19-2022, 06:28 PM
RE: efficient way to compare 2 images? - by bplus - 11-19-2022, 10:54 PM
RE: efficient way to compare 2 images? - by bplus - 11-19-2022, 11:54 PM
RE: efficient way to compare 2 images? - by bplus - 11-19-2022, 11:57 PM
RE: efficient way to compare 2 images? - by bplus - 11-20-2022, 12:02 AM
RE: efficient way to compare 2 images? - by bplus - 11-20-2022, 12:14 AM
RE: efficient way to compare 2 images? - by bplus - 11-20-2022, 12:36 AM
RE: efficient way to compare 2 images? - by bplus - 11-20-2022, 02:37 AM
RE: efficient way to compare 2 images? - by mnrvovrfc - 12-10-2022, 03:16 PM



Users browsing this thread: 22 Guest(s)