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
 Crop Problem
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

izaque

Brazil
95 Posts

Posted - Mar 15 2012 :  07:51:27  Show Profile  Reply
Hi, after using "ImageEnView.Proc.CropSel," sometimes occurs in the image is with some black stripes, "like a barcode." What causes this problem?

fab

1310 Posts

Posted - Mar 15 2012 :  08:28:27  Show Profile  Reply
Hi,
please help me to reproduce this problem. Is the area with "barcodes" inside the selection?
Which is the pixel format?
Go to Top of Page

izaque

Brazil
95 Posts

Posted - Mar 15 2012 :  10:00:10  Show Profile  Reply
No, when you cut out the image with the "Crop", sometimes the picture has some risk of black color, which is not the image. When I send to the printer, the rich do not appear in print. But the image to load these risks appear. The image is black and white 2 bits.
Remember that "sometimes happens", so I'm not sure how it occurs, but is following commands:

ievImagem.Proc.CropSel;
ievImagem.DeSelect;
Go to Top of Page

fab

1310 Posts

Posted - Mar 15 2012 :  10:31:18  Show Profile  Reply
Please could you send an image (before crop) where this has happened at least one time and the coordinates of the selection?
Go to Top of Page

izaque

Brazil
95 Posts

Posted - Mar 15 2012 :  11:09:12  Show Profile  Reply
Fabrizio, is as follows:

Step one:



Step two:



Step three:

Go to Top of Page

fab

1310 Posts

Posted - Mar 15 2012 :  12:30:36  Show Profile  Reply
Unfortunately it doesn't help me to reproduce the problem.
Please let me know the coordinates of selection (in terms of SelX1, SelY1, SelX2 and SelY2) and send me the original image.
Go to Top of Page

izaque

Brazil
95 Posts

Posted - Mar 15 2012 :  13:21:52  Show Profile  Reply
I do not know how to get these coordinates! I use "ImageEnView.MouseInteract: = [miSelect]"
But the problem is that I "move the selection", when the selection is moved and is on top of a black part of the picture it presents a risk to which blacks dragged the selection.
I do not know if this would be a bug, but either way it would be nice to verify. I managed to solve the problem using the following line:

iemvThumb.CopyToIEBitmap (idx, ievImagem.IEBitmap);

ImageEnView.Update;
ImageEnView.Refresh;





That is when I select the image in ImageEnMView. After I make a copy of ImageEnMView for ImageEnView I use ImageEnView.Update and ImageEnView.Refresh. Is a tip.
Thank you.
Go to Top of Page

fab

1310 Posts

Posted - Mar 15 2012 :  23:29:28  Show Profile  Reply
quote:
I do not know how to get these coordinates!


Handle the event OnSelectionChange of TImageEnView and display the value of properties SelX1, SelY1,SelX2 and SelY2.

I still cannot reproduce, I'm sorry!
Go to Top of Page

izaque

Brazil
95 Posts

Posted - Mar 16 2012 :  09:28:57  Show Profile  Reply
I managed to solve the problem using the following line no evento OnSelectImage(..):

ImageEnView.Update;
ImageEnView.Refresh;

You can close the topic!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: