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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Brushtool does not draws on a transparent layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

kturkay

44 Posts

Posted - Oct 28 2020 :  02:33:16  Show Profile  Reply
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

kturkay

44 Posts

Posted - Oct 28 2020 :  06:43:35  Show Profile  Reply
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
Go to Top of Page

xequte

38176 Posts

Posted - Oct 29 2020 :  02:24:36  Show Profile  Reply
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
Go to Top of Page

kturkay

44 Posts

Posted - Oct 29 2020 :  04:58:06  Show Profile  Reply
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
Go to Top of Page

xequte

38176 Posts

Posted - Oct 29 2020 :  20:40:16  Show Profile  Reply
Hi

You can email me for a fix for this.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

38176 Posts

Posted - Nov 10 2020 :  23:38:01  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: