I need to move a ring with a solid border over an an image. I figured I would make the ring's inner area transparent using the bitmap.threshold() method and move it over the image. However the threshold() method's sourceRect parameter is a Rectangle and I need mine to be a circle.
This is the method:
**public function threshold(sourceB...
I have a series of movieclips containing both bitmaps and text.
After applying some 3d transformations and moving in 3d space, my text and bitmaps are slightly blurred. This is AFTER I reset all the 3d coordinates (ie z=0, rotationX=0, rotationY=0)
Has anyone else encountered this? Is there a solution to get my crisp text and bitmaps ba...
I am writing an application that requires me to take a proprietary bitmap format (an MVTec Halcon HImage) and convert it into a System.Drawing.Bitmap in C#.
The only proprietary functions given to me to help me do this involve me writing to file, except for the use of a "get pointer" function.
This function is great, it gives me a poin...
I am trying to get a bitmap of what my dc draws, but when I convert it to Image I get
File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi.py", line 618, in ConvertToImage
return _gdi_.Bitmap_ConvertToImage(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "bmp.Ok()" failed at ..\..\src\msw\dib.cpp(148) in wxDIB:...
There seem to be many picturebox questions out there, but I haven't found any that deal with changing the contents of a picturebox to a bitmap that was not simply loaded from file.
My application takes an array of bytes and generates a bitmap from them. I really want to avoid writing to a file as an intermediate processing step.
Becaus...
Hi,
I have a flash that has a background symbol that responds to CLICK event.
On top of that symbol I have a sprite that contains a Bitmap with transparent pixels.
Both of them are added to the stage, so they are not related directly.
I want clicks on the transparent pixels on the sprite to go straight through to the background.
I hav...
I'm trying to save a Bitmap class that has transparancy as a png file with transparancy.
I'm having no luck.
The bitmap has transparancy, it just doesn't save with transparancy.
this is what I'm doing
bitmap setup
Bitmap ret = new Bitmap(bWidth, bHeight, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
saveing
ret.Save(filenam...
People, i'm sure that it's quite easy, but google didn't helped...
Here is the task - i have two byte arrays (as ARGB), representing my images. They have the same size.
What operation i should perform (byte by byte) to overlay one image to another?
Second image has some transparency, which must be considered.
To clear, im looking for a...
I'm trying to rotate a bitmap 90 degrees using the following function. The problem with it is that it cuts off part of the image when the height and width are not equal.
Notice the returnBitmap width = original.height and it's height = original.width
Can anyone help me solve this issue or point out what I'm doing wrong?
private B...
In normal C# it is easy to draw to a bitmap using the Grpahics.DrawString() method. Silverlight seems to have done away with Bitmap objects and Graphics is no longer available either. So...How am I meant to manipulate/create a bitmap when using Silverlight? If it helps, I am using Silverlight 3.
Let me tell you what I am doing. I am ...
Hello,
I have two 8bpp bitmaps. I want to do a bitwise AND of one to the other, but I don't see any obvious way to do this in .NET. Is it possible to do this without using non-.NET methods?
Thanks!
...
Looking for solution to convert a specified page of a pdf file to a bitmap image.
...
Hi all,
I wrote some Lazarus code that loops through the menu items of the main menu and needs to see whether there's a bitmap assigned to each menu item.
I tried to check with
if Assigned (MenuItem.Bitmap) then...
but this always returns true, whether a bitmap is assigned or not.
Guess the bitmap will be filled with an empty one i...
Hey all, what would be best practice for clipping the bottom borders of a Bitmap? Just manipulate the Bitmap itself or overlay an alpha mask drawable or ...?
The whole story:
I've a Listview which looks like the iPhone's grouped UITableView style. I would like to display a Bitmap in the last row, but for now the Bitmap overlaps my cust...
Is there a way to convert an image to grayscale 16pixels per bit format, rather than setting each of the r,g and b components to luminance. I currently have a bmp from file.
Bitmap c = new Bitmap("filename");
I want a Bitmap d, that is grayscale version of c. I do see a consructor that includes System.Drawing.Imaging.PixelFormat, but...
When I'm retrieving image from the sqlite database my Bitmap object bm return null value can any one help me..?
I found problem in my database..
When I store the byte array in blob data type in database table that time the size of the byte array was 2280..
But when i retrieved that blob data type using select query I get the byte arra...
Hi,
It's only for 'debugging' purposes, so I don't want to spend a lot of time with this, nor it is very important. The program exports the data as a png, jpg, svg, etc... -so it's not a big deal, though it could be good to see the image while it is being generated. Also, the program is going to be used in a Linux server; but I'll limit...
I have 2 SWFLoaders like so:
<mx:SWFLoader width="10" height="10" complete="imageLoaded()" id="ldr_src" source="img.jpg" scaleContent="true"/>
<mx:SWFLoader id="ldr_target" scaleContent="true"/>
private function imageLoaded():void{
var bm:Bitmap = new Bitmap(ImageSnapshot.captureBitmapData(ldr_src);
ldr_target.source = bm;
}
...
Hi all,
I have several images present in different folders in my sdcard. I would like to display a list of thumbnails. So what I have done is while rendering any row in the list I read the file in an input stream, get the byte array, decode it to obtain a bitmap and set it in an imageview.
So far so good. But when I scroll the list...
Can you combine the methods of Bitmap.LockBits and Graphics.FromImage, or in other words if I have a bitmap "bmp" and I want to edit the bitmap with a Graphics-object g, are the changes visible in the byte-array of the BitmapData.Scan0:
Bitmap bmp = new Bitmap(200,200);
Graphics g = Graphics.FromImage(bmp);
bmp.LockBits(new Rectangle(0,...