×

Discussion Board

Results 1 to 15 of 41

Hybrid View

  1. #1
    Registered User
    Join Date
    Nov 2013
    Posts
    30

    Merge two images

    Hi,
    I have to merge-combine two images.
    How can I do this with Nokia Image SDK?

    Thanks
    Damiano

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    427

    Re: Merge two images

    How exactlly do you want to have the images combined? Do you want to blend them together using transparency or what is the effect you want to achieve?

    This article on the wiki: http://developer.nokia.com/Community...ia_Imaging_SDK uses the Imaging SDK to blend together 3 images to create an HDR image. Perhaps the information in there helps you.

  3. #3
    Registered User
    Join Date
    Nov 2013
    Posts
    30

    Re: Merge two images

    Hi SB Dev,
    I don't want blend with transparency, I want to put an image over a background.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: Merge two images

    Quote Originally Posted by DamMen View Post
    I don't want blend with transparency, I want to put an image over a background.
    That still remains being a case of blending with transparency. You will need a mask to determine which pixels should be taken from the background image and which pixels come from the foreground one.
    If on background you mean something like a picture frame, then of course you can just simply draw the images into a single bitmap, first the frame, then the foreground, positioned into the center. But even this simple case can be described as a kind of blending.
    It is an other question if there is a simpler example somewhere, than the HDR article.

  5. #5
    Registered User
    Join Date
    Nov 2013
    Posts
    30

    Re: Merge two images

    Ok, I understand what you mean, I try to explain well what I'm trying to do.

    I have an image that acts as my background.
    Then I have another image dynamically generated from a xaml control with a transparency background.
    Now I have to put my dynamic image over the background.

    I know that there is also a ImageFusion filter that combine two image with a mask, but my mask should be generated dynamically, so it will be complicated.

    So I'm trying to find an easy way to overlay my image to the background image.

  6. #6
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    427

    Re: Merge two images

    The best way to achieve what you want to do would likely be to just create a WritableBitmap from your background Image and then use the WritableBitmaps Render Method to render the XAML control on top of that. Haven't looked into wether something similar is possible only using the Imaging SDK.

Similar Threads

  1. How to take screenshot or merge several images
    By PhoneSoulPL in forum Nokia N9
    Replies: 6
    Last Post: 2011-12-21, 09:16
  2. Replies: 1
    Last Post: 2009-03-16, 17:19
  3. Merge SIS problem
    By neil.young in forum Symbian
    Replies: 9
    Last Post: 2008-10-11, 12:23

Posting Permissions

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