CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: vanselm

Search: Search took 0.03 seconds.

  1. Replies
    1
    Views
    5,453

    Re: SetDIBitsToDevice in C#

    Hello again,

    I have figured out that the error ocurres, if the stride (width * BytePerPixel) of the image is not a multiple of 4. For example, width = 90, with 24RGB format leads to stride = 90*3...
  2. Replies
    1
    Views
    5,453

    SetDIBitsToDevice in C#

    Hello,

    I try to use the GDI function "SetDIBitsToDevice", which I call via P/Invoke:


    [DllImport("gdi32.dll", EntryPoint = "SetDIBitsToDevice", SetLastError = true)]
    public static extern...
  3. Replies
    5
    Views
    15,827

    Re: Problem with line alignment for Bitmap data

    Problem solved!
    For your interest, the problem was caused by the kind of how getting the image data from file.
    I use the GetDIBits() function now and there are no problems for displaying images...
  4. Replies
    5
    Views
    15,827

    Re: Problem with line alignment for Bitmap data

    Thanks for your reply.

    Unfortunately, it does not solve my problem because both padding algorithms are correct. It does not matter, whether I use your suggested algorithm or mine, the results are...
  5. Replies
    5
    Views
    15,827

    Problem with line alignment for Bitmap data

    Hello,

    I have already searched on the Internet about how to align each line of the bitmap data, so that it is displayed correctly. The lines must be a multiple of 4 Byte. I also tried to do so,...
  6. Re: how to compress the whole image on one run (libjpeg IJG)?

    Actually, I'm using another library now (libjpeg-turbo). But I'm still curious how could I do it with the jpeglib library. So if you know how to achieve it, you can post your solution here.
  7. Replies
    4
    Views
    7,399

    Re: Real-time compression of image data

    Hello Mike,

    the quality factor of 100 does not mean that there is no compression at all. The size of the compressed image (at factor 100) is about 200kByte, where the original raw image is about 1...
  8. Replies
    4
    Views
    7,399

    Re: Real-time compression of image data

    Now, I'm using the current version of the JpegLib ( release 8c of 16-Jan-2011). Is libjpeg-turbo really faster than release 8c?

    At the moment, I try to evaluate the Intel IPP library. I would like...
  9. Replies
    4
    Views
    7,399

    Real-time compression of image data

    Hello,

    I ran into the problem that the jpeg compression by means of JPEGLIB lasts too long, so that a real-time compression is not possible.
    My task is to capture video frame via an USB camera,...
  10. Re: how to provide the defines from one header to another?

    I don't want to include header1 into header3 because I would like to separate the class of header3 from the vendor specific API in header1. So that I can use devices of different vendors over my Api...
  11. how to provide the defines from one header to another?

    Hello,

    I ran into the following problem:
    I have implemented an API, consisting of C-Api, Manager, BaseClass and the concrete working classes derived from the BaseClass. One of this "concrete"...
  12. how to compress the whole image on one run (libjpeg IJG)?

    Hello,

    since I loose the control of my application, as soon as I start the compression/decompression process of the incoming image frame (from the usb camera), I tried to implement the compression...
  13. Replies
    0
    Views
    3,333

    questions about libjpeg from IJG

    Hello,

    I'm using the jpeg library from IJG in order to compress the raw data from usb camera and decompress and display it at the end of my procedure.
    I hope that there are some of you, who has...
  14. Re: Bitmap to JPEG compression without storing into a .jpg file?

    Thank you for helping, Olivthill!

    Your first response was helpful. Actually, I thought, I have to implement the jpeg_memory_dest by myself, but I have found out that it is already done in the new...
  15. JPEG compression algorithm to be stopped if set data size reached?

    Hello,

    Is it possible to manage the compression procedure in that way that the compression is done step by step, with increasing quality until certain data size is reached, then the compression...
  16. Re: Bitmap to JPEG compression without storing into a .jpg file?

    Is it possible to manage the compression procedure in that way that the compression is done step by step, with increasing quality until certain data size is reached, then the compression should stop?...
  17. Replies
    6
    Views
    17,587

    Re: Manually created byte array to picture box.

    You can display a byte array with manually defined RGB values with the following code:

    [code]
    int width = 320;
    int height = 240;
    byte[] imageData = new...
  18. Replies
    11
    Views
    4,635

    Re: Converting binary jpeg into BITMAP

    Have you solved your problem?

    I would like to do the same thing, that is to compress every bitmap frame without saving it into a jpg file and at the end of my process chain, show the compressed...
  19. Bitmap to JPEG compression without storing into a .jpg file?

    Hello gurus,

    could you please help me with my goal? I would like to compress the incoming raw image data (bitmap) from the usb camera in order not to stress the RAM memory. My first thought is...
  20. Difference between SetDIBitsToDevice() and BitBlt()?

    Hello,

    I wanted to display a bitmap data within a Picture Control. For that, I implemented the visualization on the one hand by means of <b>setDIBitsToDevice()</b>, where the image data in array...
Results 1 to 20 of 20





Click Here to Expand Forum to Full Width

Featured