ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 the background color of the duplicated image layer changes to black.

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
sorinara Posted - Sep 01 2024 : 11:29:25
Problem: i’ve created a code in ImageEnView where an image from the ImageEnView is copied, and a new layer is created with that copied image. The layer can be moved and its transparency adjusted to compare it with the original image. However, when i move the layer with the mouse, the background color of the duplicated image layer changes to black.

ex)
ImageEnView.Layers[idx].Bitmap.Fill(clwhite);
ImageEnView.Layers[idx].UserData := SImage;
ImageEnView.Layers[idx].PosX := ImageEnView.ViewX;
ImageEnView.Layers[idx].PosY := ImageEnView.ViewY;

ImageEnView.LayerOptions := ImageEnView.LayerOptions + [loAllowMultiSelect,loAutoSelectMask];
ImageEnView.MouseInteractLayers :=[miMoveLayers,miRotateLayers];
ImageEnView.LayerDefaults.Clear;

ImageEnView.IO.NativePixelFormat := True;
ImageEnView.IO.LoadFromStream(FImage);
ImageEnView.CurrentLayer.Transparency := TrackBar1.Position;

ImageEnView.IEBitmap.ChannelOffset[0] := 10;
ImageEnView.IEBitmap.ChannelOffset[1] := 0;
ImageEnView.IEBitmap.ChannelOffset[2] := 0;

ImageEnView.LayersCurrent := idx;
ImageEnView.Layers[idx].AntiAlias := False;
ImageEnView.Layers[idx].ResampleFilter := rfFastLinear;
ImageEnView.LayersDrawBox := True;
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 01 2024 : 15:52:30
Hi

Does removing the ChannelOffset code resolve it?

Can you email me a very simple demo that reproduces the issue?

Nigel
Xequte Software
www.imageen.com