tagged [graphics]
Writing BMP image in pure c/c++ without other libraries
Writing BMP image in pure c/c++ without other libraries In my algorithm, I need to create an information output. I need to write a boolean matrix into a bmp file. It must be a monocromic image, where ...
How to paint an area of a bitmap with 'transparent white'?
How to paint an area of a bitmap with 'transparent white'? I want to replace all pixels in a rectangular region of a Bitmap with 'transparent white' - i.e., a=0, b=255, r=255, g=255. FillRectangle doe...
Difference between Bitmap.FromFile(path) and new Bitmap(path)
Difference between Bitmap.FromFile(path) and new Bitmap(path) I woud like to know the difference between these two: Is one option better than the other one? Does `Bitmap.FromFile(path)` fills in any a...
How to manually get instance of Graphics object in WinForms?
How to manually get instance of Graphics object in WinForms? I know how to work with object of type Graphics (at least I am able to render images) but I always do that by passing graphics object retri...
How to read the RGB value of a given pixel in Python?
How to read the RGB value of a given pixel in Python? If I open an image with `open("image.jpg")`, how can I get the RGB values of a pixel assuming I have the coordinates of the pixel? Then, how can I...
Can the ZedGraph charting library for .NET be recommended?
Can the ZedGraph charting library for .NET be recommended? I am working on a project for my company, and I need to integrate some graphs of different types and average complexity to C# in the process ...
Saving images in Python at a very high quality
Saving images in Python at a very high quality How can I save Python plots at very high quality? That is, when I keep zooming in on the object saved in a PDF file, why isn't there any blurring? Also, ...
- Modified
- 23 Sep at 14:56
How to rotate 2d vector?
How to rotate 2d vector? I have this: When I call the result is: `[-0.59846006905785809, -0.8
- Modified
- 2 Apr at 17:29
Drawing Library for Ruby
Drawing Library for Ruby I am trying to code a flowchart generator for a language using Ruby. I wanted to know if there were any libraries that I could use to draw various shapes for the various flowc...
Draw a parallel line
Draw a parallel line I have x1,y1 and x2,y2 which forms a line segment. How can I get another line x3,y3 - x4,y4 which is parallel to the first line as in the picture. I can simply add n to x1 and x2 ...
- Modified
- 8 Sep at 21:37
Do I use <img>, <object>, or <embed> for SVG files?
Do I use , , or for SVG files? Should I use ``, ``, or `` for loading SVG files into a page in a way similar to loading a `jpg`, `gif` or `png`? What is the code for each to ensure it works as well as...
- Modified
- 10 Sep at 16:5
Get A Window's Bounds By Its Handle
Get A Window's Bounds By Its Handle I am trying to get the height and the width of the current active window. ``` [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)] public static ...
How to draw text using only OpenGL methods?
How to draw text using only OpenGL methods? I don't have the option to use but OpenGL methods (that is `glxxx()` methods). I need to draw text using gl methods only. After reading the red book, I unde...
Graphics on indexed image
Graphics on indexed image I am getting error: > "A Graphics object cannot be created from an image that has an indexed pixel format." in function: ``` public static void AdjustImage(ImageAttributes i...
- Modified
- 26 Jun at 06:51
How to get pixel data from a UIImage (Cocoa Touch) or CGImage (Core Graphics)?
How to get pixel data from a UIImage (Cocoa Touch) or CGImage (Core Graphics)? I have a UIImage (Cocoa Touch). From that, I'm happy to get a CGImage or anything else you'd like that's available. I'd l...
- Modified
- 25 Oct at 20:48
How to create a jpg image dynamically in memory with .NET?
How to create a jpg image dynamically in memory with .NET? I have a .NET (3.5 SP1) library (DLL) written in C#. I have to extend this library by a class method which will have the following signature:...
EMF with forced antialiasing
EMF with forced antialiasing Our program needs to generate vector graphics, and we chose EMF for that. However, it seems that other programs render these images non-antialiased. I found that SVG forma...
- Modified
- 11 May at 11:33
Outline text with System.Drawing?
Outline text with System.Drawing? I have the following code. Is there an easy way to put an outline on the text I am writing? ``` var imageEncoder = Encoder.Quality; var imageEncoderParameters = new E...
- Modified
- 17 Nov at 02:0
Free or Open Source Diagramming Component for WinForms
Free or Open Source Diagramming Component for WinForms I need to be able to generate dependency diagrams programmatically. I'd like it to be able to generate a bunch of boxes with labels and connector...
- Modified
- 20 Jul at 11:0
How to render a WPF UserControl to a bitmap without creating a window
How to render a WPF UserControl to a bitmap without creating a window How can I render a WPF UserControl to a bitmap without creating a window? I need to render a WPF UserControl and upload it to anot...
Drawing SVG in .NET/C#?
Drawing SVG in .NET/C#? I'd like to generate an SVG file using C#. I already have code to draw them in PNG and EMF formats (using framework's standard class [System.Drawing.Imaging.Metafile](http://ms...
- Modified
- 6 Oct at 12:57