Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. VCproblems

    Hi! I am trying to create a bmp fi

    Hi Matt! I have finally got the image straight, with a little more processing on the buffer. Thanks a lot for your help.
  2. VCproblems

    Hi! I am trying to create a bmp fi

    Hi Matt! Well heres what i tried : for(int k = 0;k < height*width; k++) { int y = k/width; int x = k%width; int n = ((y-1)*width)+x; Bytes[n] = pbmpBytes[n-y]; } In this case pbmpBytes is the buffer holding the bytes for the image. The size of this buffer is height*width. &quot;Bytes&quot; is...
  3. VCproblems

    Hi! I am trying to create a bmp fi

    Hi Matt! Any other ideas for the alignment. I have tried a lot over this i.e. to get the alignment and also adjusting the height and the width in such a way that they are divisible by 4 but it hardly worked. And another thing is i also get more than one images i.e. 3 images in the same...
  4. VCproblems

    Hi! I am trying to create a bmp fi

    Hi Matt! Yes it kind of looks that way. The image is tilted diagonally. The image that i want forms a diagonal going from left top corner to the right bottom of the rectangular area that holds it.
  5. VCproblems

    Hi! I am trying to create a bmp fi

    Hi Matt! The code you sent for creating a bitmap file really helped a lot. Now i am able to write the bitmap into a file without any problem. But now i guess there is a problem with the buffer that i am using to write into the file coz the image that i get out of the buffer is not straight...
  6. VCproblems

    Hi! I am trying to create a bmp fi

    Hi Matt! The code you sent works fine i.e. generates a black bitmap without any problem.Can you send me an example of a byte buffer which generates an image? Because i think there is some problem with the byte buffer i am using. Thanks a lot for your prompt replies and help.
  7. VCproblems

    Hi! I am trying to create a bmp fi

    Hi Matt! The code you sent works fine i.e. generates a black bitmap without any problem.Can you send me an example of a byte buffer which generates an image? Because i think there is some problem with the byte buffer i am using. Thanks a lot for your prompt replies and help.
  8. VCproblems

    List of Running Processes

    I guess your problem should be solved by the APIs Process32First() and Process32Next() available in SDK.
  9. VCproblems

    Hi! I am trying to create a bmp fi

    Hi Matt! Thanks a lot for your help. Actually the program you have sent is right but then the problem is not solved with the code u sent. The result is the same. Any other possible reason for the problem? The bitmap i am trying to write to a file is also a grayscale bitmap.
  10. VCproblems

    Hi! I am trying to create a bmp fi

    Hi! I am trying to create a bmp file with the following code: CDibClass::CDibClass() { memset(&m_bmpInfoHdr, 0, sizeof(BITMAPINFOHEADER)); m_pBits = NULL; m_pBMI = NULL; } CDibClass::~CDibClass() { CloseAll(); } void CDibClass::CloseAll() { if (m_pBMI) free(m_pBMI); if (m_pBits)...

Part and Inventory Search

Back
Top