HI....
I am having problem here with bitmaps..I want to remove the black background that my bitmap is having...
I am creating bitmap bitmap from byte array..and then setting the bitmap in BitMapField..but the image shown has a black background..
any help in removing the background..!!!
Thanx in advance...
...
Hi,
Using WPF I'm drawing symbols in the "fast way" (Drawing rendered on DrawingVisuals, no Shapes). So... I can successfully draw them and get hit-tested with no problem.
But when trying to remove them, using RemoveVisualChild() plus RemoveLogicalChild(), there is no effect on the screen: No visual removing.
I'm implementing my own dis...
How do I detect collision on line, preferably with mouse click?
I don't use XNA. I use just simple WinForms. And I'm not creating a game.
EDIT: I implemented solution from brone link and got really weird results. Here's small snippet. What I'm doing wrong? Pastebin link
...
I have a simple SVG drawing with an animation. What I have is two objects moving in a circle around a common center, with different rotation rates. I want to draw a line connecting the two objects.
The SVG drawing is as follows:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<circle cx="200"...
... in an image and do some calculation on their [x y] coordinates.
My first idea was to use an image as the background of a JPanel and then register the points, but I'm not sure there will be a way to mark these on the JPanel. There is also the Drawing library, which I'm unfamiliar with, but I'm not sure if I can combine these with S...
i want draw a circle on my webpage so i have downloaded two different javascript for drawing a circle.one of js file is downloaded from http://jsdraw2d.jsfiction.com/
then i have use its function to draw circle but circle is not shown on html page i have try
both internet explorer and mozilla firefox but niether it give error nor it wil...
On a treeview after the select event, I populate a listview with images.
I want to custom format these images and place a black color border around each image.
private void TreeView1_Select(object sender, EventArgs e) {
if (folder != null && System.IO.Directory.Exists(folder)) {
DirectoryInfo dir = new DirectoryI...
I wanted to know what tools (preferably free) can be used to layout a collection of objects and their relationship - simple relationship like members referring each other, inheritance, attributes et.al. I would prefer a tool with which I can create and update he diagram as quickly as possible.
I'm not familiar with UML, but it's probabl...
How to make a copy of a polygon using mouse click (e.g. when the mouse click, a menu pop up showing menu for copy).
I have problem to differentiate a mouse click, to draw or to copy. I created a method
where when the user pressed the mouse, the method will check if the mouse pressed inside existing polygon or outside. If it outside pol...
How to save drawing in JComponent into tiff format? I only know how to save the whole Java file but I dont know how to save specific Jcomponent. Help me :-(
EDITED:
Thanks guys, now I am able to save my drawing to Jpeg.
However I just wanted to save one of the component? The c.paintAll(bufferedImage.getGraphics()); seem to save the wh...
How can I create a drawing on a form and then save the drawing as an image file?
...
I am creating a Graphics object to draw on the original image and I want save the modified image as a new image.The Image on the form as well as the drawing
...
I have to make a program that uses C# Generated Graphics to make a replica of my name that I wrote in cursive. Twist is, I have to use Bezier Curves. I've already called a function to make Bezier Curves using 4 points and a gravity concept. My question to you is, What would be the easiest way to make around 10 curves.
Here is my functio...
I have two questions actually:
Is it better to draw an image on a bitmap or create a bitmap as resource and then draw it over a bitmap? Performance wise... which one is better?
If I want to draw something transparent over a bitmap, how would I go about doing it?
If I want to overlay one transparent bitmap over another, how would I do i...
I have a based image and some sprites on top of the basd image movieclip... Some of the sprites can be drawn by the user using graphics api in actionscript 3. I can draw things on the sprites but I can't create an eraser like brush that can remove part of the unwanted drawings. I try using Alpha but no it doesn't work
I have googled ab...
I have problem displaying drawing on JPanel. I created three class which linked to each other as the following. I was wondering why this code, doesn't display my drawing.
c.add(pDraw);
pDraw.add(draw);
1) MAIN
public class mainPage {
public static void main(String[]args){
JFrame appFrame = new Frame();
appFrame.setVis...
I created a program to draw many polygons automatically everytimes user presses a button. The points of the polygon are generated automatically using the random function. The problem is that, since the points of the polygon were randomly generated, some of the polygon are overlap with other polygon. How can I avoid this, so that every po...
My program draw 10 polygon triangles in random sizes (width and height). The coordinate (points) of the polygon were generated using Random generator = new Random(). Since the points of the triangle and the width and height were randomly generated, how can I control the number of sizes drawn? e.g. there are 10 polygon in total, but I wan...
Hi, I am trying to evaluate which technology is best for my needs.
I need to display a video I get from some remote device, and let a user
interactively draw on it lines, polygons etc.
I searched and couldn't find any existing applications with this ability
(all the flash applications only displayed video).
Could anyone point me to su...
I am looking for a component/library I can use in an ASP.NET application that will allow the users to drag and drop shapes into a drawing area, connect them using lines, add text boxes etc. Pretty much the same thing you can do in packages like Visio, Samrt Draw etc
Additional requirements:
1. Ability to save the final drawing
2. Expor...