first of all I'm sure the answer is already out there somehow, but I can't seem to find it. All I ever find is "use FFMPEG" but how?
I can't really find any description on which functions to use or even what functions are there at all? I'm using C# and I have a RawH264IFrame which I need to convert to Bitmap or Image.
Can anyone tell me where to find the right information?
Thank you!
OpenH264Lib.NET is a C# wrapper for OpenH264 encoder/decoder. It can also save images from the video stream.
Related
I know that tools like this exist but I am yet to find one that does the job in C#. Does a library or open source one exist or at the very least is it possible to make? If it is possible to make can anyone point me in the right direction?
Thanks for the help.
All you need to do is download every separate tile image and stitch them together into a single image.
I have a DIV container which has some text, background-image, image. I need to convert that whole DIV contents into image and save.
I have googled it around but could not find the perfect answer. some are giving answers that uses a windows application , but i need it on a web platform .
any help will be highly appreciated
From what I understood, you have to do that in the client side, so you should take a look at the toDataURL method of the canvas.
If you don't know, the canvas support text and image.
Example and little library at this link:
http://www.nihilogic.dk/labs/canvas2image/
http://html2canvas.hertzen.com/
Does't support IE though. Looks solid other than that.
This is possible, with modification to the code here http://html2canvas.hertzen.com/screenshots.html you could perform the required screenshot :)
I am using IKVM in a C# application so that I can use PDFBox to extract information from PDFs. Using PDFBox, I am able to extract images into PDXObjectImage. I need to get this PDXObjectImage into a System.Drawing.Image or System.Drawing.Bitmap. PDXObjectImage is easily converted to a java.awt.image.BufferedImage using pdxImage.getRGBImage(), but I don't know where to go from there.
I looked into it and saw that I could convert byte-by-byte, but I am too new to image programming to know how to do that. Any code snippets would be incredibly appreciated.
Thank you for your time!
If you are in C# code then you can use the method getBitmap() on java.awt.image.BufferedImage. This return a System.Drawing.Bitmap.
You can not call this method if you are on the Java side because it is hide. If you are in Java Code then only .NET refection should work.
Is it possible to programmatically extract image files from a SWF file using C#? If so, how would I go about doing that? I know this question doesn't have a lot of detail but I'm just getting started on this and know very little about Flash. Just need some direction on how to go about this. Thanks.
Take a look at this SWfDotNet flash decompiler library
SWfDotNet
check swf file format spec, Bitmaps, from page 147
I have been trying to create a decoder that will stream through a pcx file and display it on screen as a bitmap. I have managed to get the information from the image header by using a binary reader, but I have now reached the part that seems to take the least amount of code, yet is also the hardest: creating an array of pixels.
I understand that i may need to add two embeddded for loops to process the data. I have looked at some C and C++ examples, but struggle to understand them. I also need to get the array to display it. if you need more code then I will share it.
I have searched far and wide and read the spec, but I don't know how to approach this. If anyone could help me, I would be very grateful.
Regards.
The .NET does not support PCX images natively, you have two choices. Read the specification and decode the image by yourself or use some library.
As suggested on bytes.com you can use Dot Net Fireball (a Free Image wrapper) and load the image like this:
Fireball.Drawing.FreeImage freeImage = new FreeImage(#"c:\test.pcx");
Image image = freeImage.GetBitmap();
http://magick.codeplex.com/
a nice wrapper working with http://imagemagick.codeplex.com/
easy to setup and get going, see samples at the bottom of the page here:
http://magick.codeplex.com/documentation