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
 IEvolution .NET IEViewer Paint event drawing

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
Deeron Posted - Sep 27 2021 : 06:17:47
Hi,

Is it possible to draw through the paint event in the IEViewer visual control?
It does not work for me (IEVolution .NET 8.0.0).


For example, drawing a plain rectangle:



        private void Form1_Load(object sender, EventArgs e)
        {
            ieViewer1.Image.LoadImage(@"C:\sample.jpg");
        }

        private void ieViewer1_Paint(object sender, PaintEventArgs e)
        {
            e.Graphics.PageUnit = GraphicsUnit.Pixel;
            // Create pen.
            Pen blackPen = new Pen(Color.Black, 2f);

            // Create rectangle.
            Rectangle rect = new Rectangle(0, 0, 100, 100);

            // Draw rectangle to screen.
            e.Graphics.DrawRectangle(blackPen, rect);
        }


The same code works for e.g. a picturebox.


1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 27 2021 : 20:59:07
Hi

Unfortunately there is not good support in IEvolution for custom drawing at this stage.

You might want to add a layer instead (e.g. a rectangular shape):

https://www.imageen.com/ievolutionhelp/html/c46197c9-b2cb-e55a-3136-823005478089.htm


Nigel
Xequte Software
www.imageen.com