Click here to Skip to main content
15,923,789 members
Home / Discussions / C#
   

C#

 
Questionhow can i save the images,circles,rectangle,lines or etc together.. Pin
maifs24-Sep-08 4:20
maifs24-Sep-08 4:20 
AnswerRe: how can i save the images,circles,rectangle,lines or etc together.. Pin
Wes Aday24-Sep-08 4:40
professionalWes Aday24-Sep-08 4:40 
GeneralRe: how can i save the images,circles,rectangle,lines Pin
maifs24-Sep-08 5:05
maifs24-Sep-08 5:05 
GeneralRe: how can i save the images,circles,rectangle,lines Pin
Wes Aday24-Sep-08 5:20
professionalWes Aday24-Sep-08 5:20 
GeneralRe: how can i save the images,circles,rectangle,lines Pin
maifs24-Sep-08 6:23
maifs24-Sep-08 6:23 
AnswerRe: how can i save the images,circles,rectangle,lines or etc together.. Pin
Pedram Behroozi24-Sep-08 6:12
Pedram Behroozi24-Sep-08 6:12 
AnswerRe: how can i save the images,circles,rectangle,lines or etc together.. Pin
oobimoo24-Sep-08 6:16
oobimoo24-Sep-08 6:16 
AnswerRe: how can i save the images,circles,rectangle,lines or etc together.. Pin
Pete O'Hanlon24-Sep-08 9:23
mvePete O'Hanlon24-Sep-08 9:23 
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 properties

  public 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.

My blog | My articles | MoXAML PowerToys



Questiontext split up! Pin
nesfrank24-Sep-08 3:56
nesfrank24-Sep-08 3:56 
AnswerRe: text split up! Pin
Ennis Ray Lynch, Jr.24-Sep-08 4:42
Ennis Ray Lynch, Jr.24-Sep-08 4:42 
AnswerRe: text split up! Pin
Guffa24-Sep-08 6:23
Guffa24-Sep-08 6:23 
GeneralRe: text split up! Pin
nesfrank24-Sep-08 7:11
nesfrank24-Sep-08 7:11 
AnswerRe: text split up! Pin
Guffa24-Sep-08 8:10
Guffa24-Sep-08 8:10 
QuestionUnion on C# Pin
kk.tvm24-Sep-08 2:35
kk.tvm24-Sep-08 2:35 
AnswerRe: Union on C# Pin
Jimmanuel24-Sep-08 3:01
Jimmanuel24-Sep-08 3:01 
GeneralRe: Union on C# Pin
kk.tvm25-Sep-08 0:27
kk.tvm25-Sep-08 0:27 
GeneralRe: Union on C# Pin
Jimmanuel25-Sep-08 2:52
Jimmanuel25-Sep-08 2:52 
Questionsetup project related question Pin
laziale24-Sep-08 2:33
laziale24-Sep-08 2:33 
QuestionDesign patterns Pin
yadlaprasad24-Sep-08 1:46
yadlaprasad24-Sep-08 1:46 
AnswerRe: Design patterns Pin
Simon P Stevens24-Sep-08 1:51
Simon P Stevens24-Sep-08 1:51 
AnswerRe: Design patterns Pin
Abhijit Jana24-Sep-08 18:08
professionalAbhijit Jana24-Sep-08 18:08 
Questioninstance of sql server at client side Pin
laziale24-Sep-08 1:27
laziale24-Sep-08 1:27 
AnswerRe: instance of sql server at client side Pin
Simon P Stevens24-Sep-08 1:49
Simon P Stevens24-Sep-08 1:49 
GeneralRe: instance of sql server at client side Pin
laziale24-Sep-08 1:54
laziale24-Sep-08 1:54 
GeneralRe: instance of sql server at client side Pin
Simon P Stevens24-Sep-08 3:13
Simon P Stevens24-Sep-08 3:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.