Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, October 21, 2009 9:25:21 PM(UTC)

yonjh  
yonjh

Groups: Registered
Posts: 17


I call CopyRect() of LBitmapBase class.

But It's not work on bmp file.

Please see the attachment(bmp source).
yonjh attached the following image(s):
cr.PNG
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, October 22, 2009 5:38:31 AM(UTC)

Adam Boulad  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)

Can you answer the following questions:
1. which LEADTOOLS version (15, 16, etc.) and build number (DLL file version info) are you using?
2. How exactly are you using the CopyRect() function?
3. Does this happen with all files or only BMP files?
4. Can you send me the source BMP file in a ZIP or RAR file? (the image you attached is a PNG image not a BMP?
 
#3 Posted : Thursday, October 22, 2009 4:17:59 PM(UTC)

yonjh  
yonjh

Groups: Registered
Posts: 17


1. which LEADTOOLS version (15, 16, etc.) and build number (DLL file version info) are you using?

16.5 eval


2. How exactly are you using the CopyRect() function?

 LBitmapBase lbbTmp;

 nRet =lbbTmp.CopyRect((LBitmapBase&)(*m_cpAnnWnd),
          a_rtSel.left, a_rtSel.top, a_rtSel.right, a_rtSel.bottom);


3. Does this happen with all files or only BMP files?

only BMP file. I guess bitmap row order is the cause.

Is there any method LT16.5 for changing row order of bitmap?


4. Can you send me the source BMP file in a ZIP or RAR file? (the image you attached is a PNG image not a BMP?

see the attachment.

File Attachment(s):
CR.zip (3kb) downloaded 21 time(s).
 
#4 Posted : Sunday, October 25, 2009 6:14:39 AM(UTC)

Adam Boulad  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)

I have tried this at my side and I did not face the problem that you are describing, what is the return value of the CopyRect (nRet)?
Also, what is the build number (version info) of Ltkrnu.dll?

 
#5 Posted : Sunday, October 25, 2009 5:18:01 PM(UTC)

yonjh  
yonjh

Groups: Registered
Posts: 17


I send email of simple source.

Please, complie the source and check result image file(CR1.bmp)

 
#6 Posted : Sunday, October 25, 2009 5:22:21 PM(UTC)

yonjh  
yonjh

Groups: Registered
Posts: 17


I could not send email with attachment.

Check attachment of this message for the source.

File Attachment(s):
LtQA.zip (10kb) downloaded 20 time(s).
 
#7 Posted : Sunday, October 25, 2009 5:26:33 PM(UTC)

yonjh  
yonjh

Groups: Registered
Posts: 17


And I describe by image this problem for your understanding.
yonjh attached the following image(s):
CR_rect.jpg
 
#8 Posted : Sunday, October 25, 2009 5:33:36 PM(UTC)

yonjh  
yonjh

Groups: Registered
Posts: 17


I use Ltkrnu.dll like as below:

file size: 521kb(533840byte)

file version: 16.5.0.3

product version: 16.5.0.0

build: Final

 
#9 Posted : Monday, October 26, 2009 4:19:00 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)

I checked your images, and they both have view perspective of Bottom-Left which makes the rectangle reversed.
To fix the issue you should take the view perspective into consideration. One way to do it without changing other parts of your code is to make the image Top Left by using LBitmapBase::ChangeViewPerspective.

 
#10 Posted : Tuesday, October 27, 2009 3:32:15 PM(UTC)

yonjh  
yonjh

Groups: Registered
Posts: 17


Thanks a lot.

It works very well.

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.218 seconds.