Processing image processing solution for Atitit mixed overlay two images JavaFX blend

Source: Internet
Author: User

processing image processing solution for Atitit mixed overlay two images JavaFX blend

1.1. jhlabs seems to have an overlay algorithm, but Doc 1 is not found

1.2. Self Algorithm Overlay 1

1.3. using the JavaFX class library for image overlay blending 1

1.1. jhlabs seems to have an overlay algorithm, but Doc is not found. 1.2. Own Algorithm Overlay

/atiplatf_cms/src/com/attilax/img/imageblendfilter.java

Blend Blend  = New Blend (blendmode. Color_dodge );

   blend .settopinput ( new  imageinput ( img1_jfxfmt

Blend. Setbottominput (new imageinput (lowimg_jfxfmt));

Iv2.seteffect (blend);

Group GRP  = New Group ();

New Group (Lowimg_imgview,topimg_imgview);

grp. SetEffect (blend);

1.3. using JavaFX class libraries for image overlay blending

Public static bufferedimage Blend_color_dodge (String topimg,

String lowimg ) {

Javafx.scene.image.Image topimg_jfxfmt  = toimg (topimg);

Javafx.scene.image.Image lowimg_jfxfmt  = toimg (lowimg);

blend blend  = " Span style= "Font-family:consolas; Color: #7f0055; font-size:12pt ">new  blend (BlendMode. color_dodge

blend .settopinput ( new  imageinput ( topimg_jfxfmt

Blend . Setbottominput (new imageinput (lowimg_jfxfmt));

Group GRP  = New Group ();

GRP . SetEffect (blend);

// writableimage img  = New Writableimage (( int ) Topimg_jfxfmt.getwidth (),

// (int) topimg_jfxfmt.getheight ());

//Scene.snapshot (img);

Writableimage Img2  = GRP . Snapshot (new snapshotparameters (), null);

// Stackpane root = javafxutil.getstackpanefrmimg (IMG2);

bufferedimage copy2  =   Swingfxutils. fromfximage ( img2 " Span style= "Font-family:consolas; Font-size:12pt "", null );

Copy2 = imgx. Remove_alpha_channel (copy2);

return copy2;

}

Resources

the principle and implementation of mixed image overlay blend in image processing image Atitti

The schematic diagram of the layer blending mode in Photoshop script Home . htm

Knowledge Photoshop Blend Mode-part 1-dcfever.com.html

Blend formula for layer blending mode in PS -Jave.lin 's Column - Blog channel -CSDN. Net.html

Pixel-based image blending for image processing - stray fish - Blog channel -CSDN.NET.html

Mixed Mode _ Baidu Encyclopedia . HTML

author::  Nickname :Old Wow's claws( Full Name::AttilaxAkbar Al Rapanui Attilaksachanui) 

Kanji Name: Etila ( Ayron) , email:[email protected]

reprint Please indicate source: http://www.cnblogs.com/attilax/

Atiend

Processing image processing solution for Atitit mixed overlay two images JavaFX blend

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.