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
 Brushtool does not draws on a transparent layer

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
kturkay Posted - Oct 28 2020 : 02:33:16
Hi Sir,
Bug Report 1:
(or should I do an alternative way to create transparent layer?)

After months I reopened Delphi again. installed imageen 9.2.5 (prior I was using 9.0.0).

now I have a problem with brushtool. does not paints on an empty transparent layer. therefore I returned back to 9.0.0.

am using imageenvect (and indeed havenotime to effort replace it with imageenview)

I am opening a file and adding another full transparent layer on it like that:

WH_.Width := Iv.Layers[0].Width;
WH_.Height := Iv.Layers[0].Height;
Iv.LayersAdd(ielkImage, -1, -1, WH_.Width, WH_.Height);
// just tried Iv.CurrentLayer.Bitmap.Fill(TRGB2TRGBA(0, 255));
Iv.CurrentLayer.Bitmap.Fill(0);
Iv.CurrentLayer.Bitmap.AlphaChannel.Fill(0);//for fulltransparency
//Iv.CurrentLayer.Bitmap.AlphaChannel.FillRect(-1, -1, WH_.Width, WH_.Height, 0);
//somesays FillRect is faster than fill ? is it true?

when I draw on a semitransparent filled layer, brustool full opaque draws before mouseup, when I release my finger from mouse, brushes become semitransparent if
Iv.CurrentLayer.Bitmap.AlphaChannel.Fill(40);//test to see draws on semitransparent attemption
and I see nothing if AlphaChannel.Fill(0) after mouseup


report 2: iebfSpray type of BrushTool.BrushFill that I feel some slow performance rather than 9.0.0. (maybe I am wrong. just reporting)

report 3(9.0.0): somehow drawing brushtool via tablet is faster performance rather than mouse..

Suggestion 1:
I am using tablet apis. and
brushsize changing regarding pen pressure value. It could be awesome to control for each pixels of brushtool transparency value regarding pen pressure value.
it just sets last value for each stroke.

(after some research the forum. I feel the link below may help ?
https://www.imageen.com/ieforum/topic.asp?TOPIC_ID=1991&SearchTerms=AlphaChannel.Fill
)

didn't coded that "EnableAlphaChannel" property yet. may help ?

thanks
5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 10 2020 : 23:38:01
Hi

We've completed our support for pressure sensitivity when using a tablet/pen. This will we available in v9.2.6.

Nigel
Xequte Software
www.imageen.com
xequte Posted - Oct 29 2020 : 20:40:16
Hi

You can email me for a fix for this.



Nigel
Xequte Software
www.imageen.com
kturkay Posted - Oct 29 2020 : 04:58:06
as a device simple xp-pen deco3 is good enough sir. am using NWSComps Wintab vcl.

(Note(maybe important¿): interestingly tablet drawin has no lag while drawing (if I compare to draw via mouse)
for my subjective opinion tests, brushtool is better and more natural in v9.0.0 for that reason I removed v9.1 and v9.2.5 (this means I lose other new exciting features but okay)

not urgent needs, or not complainin just reporting ^^

Kind Regards
xequte Posted - Oct 29 2020 : 02:24:36
Hi

I can reproduce the issue painting onto an alpha layer and we are investigating a fix.

I have pressure sensitivity on our to-do list, but I could not find a tablet so I could test it on my system. Any recommendations?



Nigel
Xequte Software
www.imageen.com
kturkay Posted - Oct 28 2020 : 06:43:35
report1 possible solution for 9.2.5
//Iv.BrushTool.TransparencyMode := ietmCompositing; works in 9.0.0
Iv.BrushTool.TransparencyMode := ietmReplace; solution in 9.2.5
the 2nd line worked. I can now brushtool draw on empty layer.

but this time there is biases on overlapped brush strokes. this does not happen in 9.0.0
(therefore I returned back 9.0.0)


this is in 9.2.5 (using ietmReplace. because cannot draw on transparent layer via ietmCompositing)


and 9.0.0 (ietmCompositing)


any ideas ?
thanks