Quick Summary:
I have an array of 24-bit values. Any suggestion on how to quickly expand the individual 24-bit array elements into 32-bit elements?
Details:
I'm processing incoming video frames in realtime using Pixel Shaders in DirectX 10. A stumbling block is that my frames are coming in from the capture hardware with 24-bit pixel...
How to export a pdf page as an image using pdfsharp .net library, for pixel level manipulation ?
for example, something like, System.Drawing.BitMap.GetPixel()
I am trying to find out empty area (all white, or of any colour) inside a pdf document, to write some graphics / image.
09, June 2010:
I have tried this, but it is not working....
GdipBitmapLockBits works on pBitmaps, requires locking ?
CreatDIBSection gives you a DIBsection, doesn't require locking ?
which method is better for working with raw pixel data ?
Here are two implementations for finding the difference between two images using each method.
...
Hi !
I wanted to create a custom combo box like this (as in MS Word),
Are there any Win32 API calls (I can't use MFC) to get this job done, (like ChooseColor() or ChooseFont()? If there aren't any, can anyone please tell me how to do this? Thanks you.
Regards,
EDIT:
Creating the Owner-Drawn Dialog Box!! Is this the only way ?
http:...
Hi there,
I have got a problem: I would like to use a method Render() for WriteableBitmap object. However, as I noticed, the method is not available without using a Silverlight assembly System.Windows.dll. I need to use RenderTargetBitmap in my project (PresentationCore assembly for standard .net). Here is the problem - there are defini...
Hi there,
I need to draw a basic shapes on my bitmap (Bgra32). However, RenderTargetBitmap works with Pbgra32 bitmaps. What is the most elegant way of dealing with bitmaps in WPF?
Thank you in advance for the reply!
Cheers
...
I have a wpf app where I'm using an image. To reference the image I use:
Uri uri = new Uri("pack://application:,,,/assemblyName;Component/myIcon.png");
BitmapImage(uri)
If I add the png directly under the csproj file (with its properties BuildAction=Resource) then it works fine.
But I want to move it to a subfolder under the csproj....
Hi guys,
the problem is: I want to use the same ColorConvertedBitmap object for two purposes, firstly I set everyting:
ColorConvertedBitmap conv = new ColorConvertedBitmap();
conv.BeginInit();
conv.SourceColorContext = new ColorContext(PixelFormats.Bgra32);
conv.Source = myImage;
conv.DestinationFormat = PixelFormats.Pbgra32;
conv.Dest...
How to create Bitmap object from a Graphics object ? I would like to read pixels from my Graphics object. for example, like, System.Drawing.BitMap.GetPixel().
I am trying to find out empty area (all white, or of any colour) inside a pdf document, to write some graphics / image. I have tried like this, but it is not working. why the foll...
How can I copy the image in the clientrectangle of my form to a bitmap in memory? I know how to go from bitmap to form, but not the other way around. Thanks!
...
Hi all, I am running into a problem with bitmaps on an Android application I am working on. What is suppose to happen is that the application downloads images from a website, saves them to the device, loads them into memory as bitmaps into an arraylist, and displays them to the user. This all works fine when the application is first star...
I want to get the bitmap that is drawn when a textview is displayed but without displaying the textview in the activity. something like this:
TextView t = new TextView(this);
t.forceToDrawItself();
Bitmap b=t.getViewBitmap();
how is this possible?
...
How can I convert a Drawable to a Bitmap?
I would like to set a certain drawable as the device's wallpaper, but all wallpaper functions accept Bitmaps only (I cannot use WallpaperManager - I'm pre 2.1).
Also, my drawables are downloaded from the web and do not reside in R.drawable.
Thanks, Rob
...
I would to know if it's possible to convert a simple bitmap to a geometry object
...
I've got an app which dynamically generates anywhere from 6 to 100 small bitmaps for the user to move around the screen in a given session. I currently generate them in onCreate and store them to the sd card, so that after an orientation change I can grab them out of external storage and display them again. However, this takes time (th...
Hi all, I am working on an application that downloads images from a url. The problem is that only some images are being correctly downloaded and others are not.
First off, here is the problem code:
public Bitmap downloadImage(String url) {
HttpClient client = new DefaultHttpClient();
HttpResponse response = null;
try {
...
I need to create a vb.net program that consists of a unmovable, always on top bitmap, with no menu bar or anything, and does not show up in the task bar as program.
It needs to always start in the same place.
Essentially I need to mask a part of the screen by using a bitmap that blends into the scenery.
I am not sure which properties I...
Hi,
While searching in the net i got few lines of code in VB for extracting an image from EMF File.
I tried to convert that into Delphi but doesnt work.
Help me in converting this code to delphi.
Public Function CallBack_ENumMetafile(ByVal hdc As Long, _
ByVal lpHtable As Long, _
...
Hi all,
The title says it all, I have a variable of type Bitmap and I would like to assign it to a Contact from my contact list as the CalledID picture, how would I do that?
...
I am trying to programatically create a bitmap from an array that contains color data. With the code below, I get 3 duplicate distorted images side by side when displayed in a picturebox. Can somebody tell me where it's going wrong?
public Bitmap CreateBM(int[,] imgdat)
{
Bitmap bitm = new Bitmap(imgdat.GetUpperBound(1)...