Discussion Board

Page 1 of 3 123 LastLast
Results 1 to 15 of 41
  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
    529

    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
    Oslo, Norway
    Posts
    28,790

    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
    529

    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.

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

    Re: Merge two images

    Mmm ok, my problem is that this operations runs in a background agent, no visual elements, only two images.
    To be honest my goal can be achieved with Blit function of Writeablebitmapex http://writeablebitmapex.codeplex.com/.

    But Nokia Image SDK is ten times faster than Writeablebitmapex

  8. #8
    Regular Contributor
    Join Date
    Nov 2011
    Location
    la bouexiere, france
    Posts
    481

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

    Re: Merge two images

    Hi yan_,
    I want to simply put an image over another image.
    The bottom image is visible only where the top image is transparent.

    Blend fuse the two image but create a sort of "ghost" effect

    I think that CreateImageFusionFilter can do what I need but, as explained before, it need a mask that I should create dynamically and it's not easy in my case.

  10. #10
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    529

    Re: Merge two images

    I'd say Blend should do the trick if you use the Overlay BlendFunction. At least from what it sounds like. Didn't try it myself.

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

    Re: Merge two images

    Quote Originally Posted by SB Dev View Post
    I'd say Blend should do the trick if you use the Overlay BlendFunction. At least from what it sounds like. Didn't try it myself.
    Sincerely I've tried with Overlay, but maybe I have done something wrong.
    When I come back home I'll try again.

  12. #12
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    529

    Re: Merge two images

    Didn't know that you already have tried it. What have you tried using the Imaging SDK so far?

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

    Re: Merge two images

    I tried Blend function with Add and Overlay.

    I think that this article http://developer.nokia.com/Community...ia_Imaging_SDK (see images under Blender application)
    give a clear explanation of what Blend function do.

  14. #14
    Regular Contributor
    Join Date
    Nov 2011
    Location
    la bouexiere, france
    Posts
    481

    Re: Merge two images

    have you a sample of pictures and the result target?

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

    Re: Merge two images

    I want to obtain something like this

    http://sdrv.ms/HISeGi

    Here there is the background, an image, and the result

Similar Threads

  1. How to take screenshot or merge several images
    By PhoneSoulPL in forum Nokia N9
    Replies: 6
    Last Post: 2011-12-21, 10:16
  2. Replies: 1
    Last Post: 2009-03-16, 18: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
  •  
×