I wrote a small project that displays icons on the screen on WinCE. The icons are 28x28 16-color BMP files, placed in the main resource file (Resources.resx) (the resx for the main Form has the same problem, and GIF files don't work either).
The first time I try to get any bitmap from the resources, an exception of type Exception with M...
What's the easiest way to generate a bitmap using Python?
Text support would be nice but not required.
(On Mac, I was trying to use Quartz through Python, but Snow Leopard seems to have broken its functionality. Therefore I've decided to look for a solid, simple, cross-platform solution that won't break each time the OS is updated.)
...
Hello,
I'm trying to fill an area of an image in WPF. Something similar to the bucket in Paint. How should I do this? I'm thinking of getting the pixel color under the mouse, and change all the pixels with the same color near. Is there a simpler way?
What should I use? WriteableBitmap?
Thank you
...
Does anyone have an example of how to do some masking with Delphi TImage so I can have one image put on another?
Using 2009
...
Hi,
I have several large image files (32bpp, 50 megapixel) that I draw on top of each other, because they are partly transparent. I want to print the images on the PrintPreviewDialog.
If I draw directly on the PrintPage the resolution is super but the printdocument is huge (200Mb)
If I draw on a bitmap that has the size of the paperfo...
I've created a project, added a reference to System.Drawing, and added a bmp file "screenshot003.bmp". I've r-clicked the bmp-file and brought up it's properties. I marked it as "Content". When I run the app, it crashed - probably b/c it couldn't open the bitmap.
How do I fix it?
using System;
using System.Collections.Generic;
using Sys...
How do you do a bitmap morph tween in Actionscript? I would like to morph a Panel into a Button, using BitmapData or something but I have no idea where to begin.
...
I have a one 64-bit integer, which I need to rotate 90 degrees in 8 x 8 area (preferably with straight bit-manipulation). I cannot figure out any handy algorithm for that. For instance, this:
// 0xD000000000000000 = 1101000000000000000000000000000000000000000000000000000000000000
1 1 0 1 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 ...
Hi everyone,
Does anybody know a good C sample that loads bitmaps and handles all the cases: rle, b/w bitmaps, so on?
Code should be cross-platform.
Thanks.
...
I´m generating some PNG Diagrams for my Asp.net application. With PNG I reach the quality I need on the Website, but I also need to generate a Report and there for I have to Resize my Diagrams from 897x651 to 216x161. How can I achieve this, without losing too much of quality. I have tried :
http://www.peterprovost.org/blog/post/Resi...
On the server side, i assign Bitmap.Tag = "a string", but on client side, i always get the Tag == null.
Where am i doing wrong?
...
System: Windows XP SP3, .NET 3.5, 4GB RAM, Dual 1.6gHz
I have a WPF application that loads and transitions (using Storyboard animations) extremely large PNGs. These PNGs are 8190x1080 in resolution. As the application runs it appears to cache the images and the system Memory slowly creeps up. Eventually it chokes the system and throws ...
I am using tessnet2 to extract the sentence in this img file. When i call the tessnet2 func using bmp it fails (it returns "~" as my sentence) and when i use bmp2 instead it works. WTF, why?
The reason why i am am doing FromFile is because i am grabbing the image from my server and using Image.FromStream to directly load instead of savi...
I want to convert movie files like AVI, MOV etc. to Bitmap-Files, like JPEG, JPEG2000, TIFF etc.
Is it possible to realize that with DirectX / DirectShow?
Is AVCodec from ffmpeg the much more better choice?
Is it well documented?
Are there any other possibilities to realize this problem (f.e. with Qt)?
...
Hi, i need to create a 24 bits bitmap (resolution 100x100 pixels) using a unique RGB color and save the generated image to the disk.
currently i use the SetPixel function , but it is extremely slow.
Bitmap Bmp = new Bitmap(width, height);
//...
//...
Bmp.SetPixel(x,y,Color.FromARGB(redvalue, greenvalue, bluevalue));
There is a faster ...
Hello,
unfortunately I cannot resort to C# in my current project, so I'll have to solve this without the unsafe keyword.
I've got a bitmap, and I need to access the pixels and channel values directly. I'd like to go beyond Marshal.ReadByte() and Marshal.WriteByte() (and definitely beyond GetPixel and SetPixel).
Is there a way to put a...
Hi,
Problem in drawing a semi transparent PNG image on TBitmap object.
If the TBitmap's ,HandleType is set to bmDDB, then the canvas is drawn transparent.
But the problem is it doesn't work on all kinds of machines (for ex: Windows on apple computers).
When a TBitmap's HandleType property is set to bmDIB, canvas background is drawn wh...
Is there any sane way to work with bitmaps in WPF? I'd like similar functionality as System.Drawing.Bitmap: be able to load image from file and get and set the color of particular pixels.
I know about WriteableBitmap, but I don't want to work with Arrays of gods-know-what (I couldn't find that on MSDN), or pointers. I just want to read ...
Anyone knows how to convert a bitmap to PNG or JPG using Objective C assuming I have
CGImageRef imageRef;
...
Hello, I'm trying to put some File objects into a DataGrid, but I can't find a way to display the File.icon in there.
So far I have this: (ms[x] is a File)
listData.addItem({
filename:ms[x].nativePath.replace(/.*\\/,""),
path:ms[x].nativePath.replace(/\\[^\\]*$/,"\\"),
icon:ms[x].icon.bitmaps[0]
});
and
<mx:DataGrid x="358" y="0"...