WriteableBitmap problem

HI.
I need to get save a writable bitmap as jpg for example . In my application I create a few writable bitmaps, but I show only one and user can choose if he will load another writable bitmap. To do that I think I need to create an list with path to all writable bitmaps ( or created jpg files, I don't know) and for that I have to save them somewhere.
Do you have any idea how to do that?
LVL 1
mastiSoftAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Shaun VermaakTechnical Specialist/DeveloperCommented:
Post some code please
0
mastiSoftAuthor Commented:
for (int j=0; j<AmountFiles; j++) // it can be upp to 16 files
{
// get data from the data file with path
       using (FileStream fs = File.OpenRead(t_path))
            {
                using (BinaryReader binaryReader = new BinaryReader(fs))
                {

                    Data16 = binaryReader.ReadBytes(size);
                         }
                fs.Close();
                fs.Dispose();
            }
              var bitmap = new WriteableBitmap(width, height, 96, 96, PixelFormats.Indexed8, myPalette);
             stride = ((width * bitmap.Format.BitsPerPixel) + (width % 4));                      
             image_data = new byte[(int)(height * stride)]; // Set the dimensions of the IMAGE ARRAY declared above

            // some function here that setpixel to image_data
           
                   bitmap.WritePixels(new Int32Rect(0, 0, width, height), image_data, (int)stride, 0); //pay attantion when we use Palette then color have to be send as "0"
                        var rotatedImage = new TransformedBitmap(bitmap, new RotateTransform(90));
                     MyImage.Source = rotatedImage; //redraws every time new trace loads // this is works but all images overwrite each others and shows one after another in MyImage (


//somewhere here I have to do something to save path to the created files in List . This is needs to load all images in the list box
// for user select one of them
}
0
mastiSoftAuthor Commented:
I found the solution.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shaun VermaakTechnical Specialist/DeveloperCommented:
Hi mastiSoft

Sorry I missed your comment. I was oversees when you replied
0
mastiSoftAuthor Commented:
I put the question on April and now in June I found the solution. No one of the expert gives any answer to my request.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WPF

From novice to tech pro — start learning today.