how can i save the images,circles,rectangle,lines or etc together..
-
how can i save the images,circles,rectangle,lines or etc together.. if somebody knows it then plz explain me with some code... i konw that image can be save via one of the Bitmap's method i.e: imageObj.Save(fileName); but i want to save not only images , whole it(e.g: circles,rectangles,lines which a user is drawn on it) not a just an image. plz dont send the source of anyother site because i m new commer
hghghgh
-
how can i save the images,circles,rectangle,lines or etc together.. if somebody knows it then plz explain me with some code... i konw that image can be save via one of the Bitmap's method i.e: imageObj.Save(fileName); but i want to save not only images , whole it(e.g: circles,rectangles,lines which a user is drawn on it) not a just an image. plz dont send the source of anyother site because i m new commer
hghghgh
If someone knows the answer, they would answer your first post. Posting again isn't going to make things any better.
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Individuality is fine, as long as we do it together - F. Burns
-
If someone knows the answer, they would answer your first post. Posting again isn't going to make things any better.
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Individuality is fine, as long as we do it together - F. Burns
-
The first thing to remember is that no one here is a professional answer person. We do it to help each other. If you are not getting an answer, we don't know or can't figure out what you are trying to do. Try google for an answer to your situation. Many times a simple google search will get you an answer faster than posting on a forum. Try re-stating what you are trying to do in plain simple english. Include what you have tried to do that did not work. Patience.
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Individuality is fine, as long as we do it together - F. Burns
-
how can i save the images,circles,rectangle,lines or etc together.. if somebody knows it then plz explain me with some code... i konw that image can be save via one of the Bitmap's method i.e: imageObj.Save(fileName); but i want to save not only images , whole it(e.g: circles,rectangles,lines which a user is drawn on it) not a just an image. plz dont send the source of anyother site because i m new commer
hghghgh
I can't clearly understand what you're looking for but I think you should know what you want to save. For example if you want to save a rectangle properties you have to save it's location, size, color,... in a database (file, sql,...) and load them when user executes your application. But if you explain some more, I think we can help you better.
-
how can i save the images,circles,rectangle,lines or etc together.. if somebody knows it then plz explain me with some code... i konw that image can be save via one of the Bitmap's method i.e: imageObj.Save(fileName); but i want to save not only images , whole it(e.g: circles,rectangles,lines which a user is drawn on it) not a just an image. plz dont send the source of anyother site because i m new commer
hghghgh
Use GraphicsPath. Unfortunately you can't serialize a GraphicsPath oblect, but you can save the PathPoints[^] array, PathTypes[^] array and the FillMode[^], and then restore the GraphicsPath by the GraphicsPath Constructor (Point[], Byte[], FillMode)[^]. Also keep extra info for the colors of pens or brushes etc, that you use to draw or fill a GraphicsPath.
-
The first thing to remember is that no one here is a professional answer person. We do it to help each other. If you are not getting an answer, we don't know or can't figure out what you are trying to do. Try google for an answer to your situation. Many times a simple google search will get you an answer faster than posting on a forum. Try re-stating what you are trying to do in plain simple english. Include what you have tried to do that did not work. Patience.
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Individuality is fine, as long as we do it together - F. Burns
-
how can i save the images,circles,rectangle,lines or etc together.. if somebody knows it then plz explain me with some code... i konw that image can be save via one of the Bitmap's method i.e: imageObj.Save(fileName); but i want to save not only images , whole it(e.g: circles,rectangles,lines which a user is drawn on it) not a just an image. plz dont send the source of anyother site because i m new commer
hghghgh
The normal mechanism for performing this is to make each image item an object in its own right, possibly inheriting from a common base class, and then each item is responsible for writing the information to the serialization stream under the control of some form of "canvas". Typically, your base class might look like this:
public abstract class ImageBase
{
public int X { get; set; }
public int Y { get; set; }
public int Width { get; set; }
public int Height { get; set; }
// More propertiespublic virtual ImageBase Save()
{
}public virtual void Load(/* some form of stream */ item)
{
// Rehydrate the object from the stream.
}
}Deja View - the feeling that you've seen this post before.