×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    30

    Post Add the frame to a Picture

    Hi, all
    I found many picture processing apps in windows phone store. And most of them were able to add a frame to the picture and dynamically changed it. I'd like to implement a similarly feature in my app. After checking files in Google, I typed the following code:
    Code:
     <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        <Grid.Background>
          <ImageBrush ImageSource="/frame.jpg"/>
        </Grid.Background>-->
        <Canvas x:Name="picCanvas" Width="456" >
          <Image x:Name="picImage" Width="456" />
        </Canvas>
     </Grid>
    As the coded showed. I add a background for the Grid as a picture frame. And I also could change the backgroud dynamically. Seemed like work well. But unfortuenately, I have no idea on saving the framed picture. I used the WriteableBitmap(UIElement element, Transform transform) method saved the framed picture like this:
    Code:
    WriteableBitmap framedPicture = new WriteableBitmap(ContentPanel,null);
    but the saved picture was smaller on size. e.g:The original picture was 800*600, the saved pic was 456*386.
    What's wrong? Could any one give me a help?
    Regards!

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: Add the frame to a Picture

    Hi

    check this wiki -- you can specify the bitmap size while instantiating WriteableBitmap

Similar Threads

  1. how to convert every EColor16MU frame to EGray256 frame correctly?
    By freesui1984 in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2008-12-12, 07:23
  2. Replies: 2
    Last Post: 2007-08-31, 09:56
  3. how can i move in the video player frame by frame forward & reverse
    By nitwalssn@gmail.com in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2007-05-09, 09:46
  4. Problem with adding a frame to a picture
    By Dqueen in forum General Development Questions
    Replies: 0
    Last Post: 2005-11-06, 21:03
  5. Selection frame on picture selction
    By Deolali in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-03-11, 12:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×