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
 assign from ImageEnView not working - gray image after assign

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
Fabgon Posted - Aug 17 2021 : 12:37:49
Hi ,

this is my first post. I'm trying to load content from timage to ImageEnview v8.6 (yes a old version i know ) but cannot work.

The code bellow is used to load a file to timage ( only for test )


   JPG := TJPegImage.Create;
    try
      JPG.CompressionQuality := 100;
      JPG.Loadfromfile(extractfilepath(Application.exename)+'f.jpg');
      image1.Picture.Assign( JPG );

    finally
      FreeAndNil(JPG);
    end;


What i have tried , :



   // Test 1
   try  
     ...
     ImageEnView1.IEBitmap.Assign( jpg);
    finally
      FreeAndNil(JPG);
    end;

   // Test 2
   try
    bmp:=TBitmap.Create;
    bmp.Assign(imgPlotAna.Picture.Bitmap);
    ImageEnView1.IEBitmap.Assign(bmp);
    bmp.Free;
 
    // Test 3  - Using assign directly from TJPeG
    ImageEnView1.Assign(JPG);  

    // Test 4  - Assign from timage.bitmap to ImageEnview.bitmap
    ImageEnView1.Bitmap.Assign(image1.Picture.Bitmap);



The ImageEnView cannot load the image in all tests. What i'm doing wrong?

2   L A T E S T    R E P L I E S    (Newest First)
Fabgon Posted - Aug 19 2021 : 14:44:38
Thank you Nigel !

Works like a charm.

Fabricius
xequte Posted - Aug 18 2021 : 05:47:11
Hi

Either of the following should work:

ImageEnView1.IEBitmap.Assign( image1.Picture );
ImageEnView1.Update();

ImageEnView1.Assign( image1 );


Nigel
Xequte Software
www.imageen.com