Searching in a DC
-
How can i do a search in a DC? I need to determine if there's a certain set of pixels (another, much smaller DC) present in a big DC. How can i do this? I already did some searching on this site and on MSDN but i can't come up with anything usefull. Thanks.
-
How can i do a search in a DC? I need to determine if there's a certain set of pixels (another, much smaller DC) present in a big DC. How can i do this? I already did some searching on this site and on MSDN but i can't come up with anything usefull. Thanks.
There is only one way: brute force In an MFC implementation, you would use a CDC object and the
GetPixel
SDK function. The function returns the color of a pixel in the specified point. You would need to run through the bigger DC in pieces of the smaller DC, comparing each pixel against other. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.