Main problem: 2 image comparing. Is there a possibility that one image can be part of other image. Other image may be bigger. Like I make screenshot from my desktop. Then I load to memory smaller image "My Documents" and trying to find that from "MyDesctop" image.
I downloaded imgenginesmall.zip from this site. There is custom image storing sample. How I can get colors from cordinates 1:1?
... Type RGBQUAD rgbBlue As Byte rgbGreen As Byte rgbRed As Byte rgbReserved As Byte End Type 'This is our Custom Image File Format. Type ImageFile ImageWidth As Long 'Width of Image ImageHeight As Long 'Height of Image ImageBPP As Byte 'Bits Per Pixel (24bpp or 8bpp) ImagePalette() As RGBQUAD 'Store our palette (for 8bpp only) ImageData() As Byte 'Series of Bytes (R-G-B for 24bpp or Palette Index for 8bpp) End Type .... How do I get colors from cordinates 1:1 if image is stored as 24 bit?
Solutin in my way... ... For yY = 0 To pImage2.ImageHeight - 1 Step 1 For xX = 0 To pImage2.ImageWidth - 1 Step 1 tempR2 = pImage2.ImageData(((xX * 3) + 1) + ((yY * pImage2.ImageWidth) * 3)) tempG2 = pImage2.ImageData(((xX * 3) + 2) + ((yY * pImage2.ImageWidth) * 3)) tempB2 = pImage2.ImageData(((xX * 3) + 3) + ((yY * pImage2.ImageWidth) * 3)) ...
and I begin to test my code. And I found out that 24 bit BMP files looks very funny(in PictureBoxs) sometimes with my program. And I tested BMP files with original program and those pictures are looking wierd in original program too. Originial 24 bit BMP what was included with sample looks ok. And some really big BMP files I found in my HD too. But some smallers pictures are wierd. Even the ones I downloaded from web. Well,l I like to know, is image submit in custom format wrong(LoadBMP function). Or wrong is only image dispalying function(DrawImage function) in original "imgenginesmall.zip" program. Does anyone have any idea?