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 : Monday, February 11, 2013 8:25:58 PM(UTC)

skshin  
skshin

Groups: Registered
Posts: 6


User 17.5
I want annotation default font size change.

My Implemetation code.

LImageViewerCell* pCreateCell = new JImageViewerCell();
pCreateCell->Create(m_ImageViewer.GetWindowHandle(0), 0);
pCreateCell->EnableAnnotationCreatedCallBack(TRUE);




L_INT JImageViewerCell::AnnotationCreatedCallBack(L_INT nCellIndex, L_INT nSubCellIndex, L_UINT uAnnotationType)
{
UNREFERENCED_PARAMETER(nCellIndex);
switch(uAnnotationType)
{
case ANNOBJECT_RECT:
case ANNOBJECT_ELLIPSE:
case ANNOBJECT_TEXT:
{
HANNOBJECT hAnno;
this->GetAnnotationContainer(nSubCellIndex, &hAnno, 0 );
LAnnText anno(hAnno);
//anno.SetHandle(hAnno);
anno.SetFontSize(50);
}
}

return SUCCESS;
}

this code wrong?

 

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 : Wednesday, February 13, 2013 6:24:20 AM(UTC)

Ibrahim  
Guest

Groups: Guests
Posts: 3,022

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

The code is not correct. It gets the annotations container then creates a text annotation class from it, which is not a valid approach.

How exactly are you creating the text annotations in the first place? Are you using the mouse to draw them on the cell?
 
#3 Posted : Friday, February 15, 2013 7:39:15 PM(UTC)

skshin  
skshin

Groups: Registered
Posts: 6


No effect.

can not change font size.
I want mouse click time change font size and
complete time change font size.
 
#4 Posted : Sunday, February 17, 2013 5:23:14 AM(UTC)

Ibrahim  
Guest

Groups: Guests
Posts: 3,022

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

The attached project is a modified from the C++ Medical Viewer demo. This project shows how to set the font size of the text object.

To compile and run the project correctly, copy the project to the following folder:
[LEADTOOLS 17.5 Folder]\Examples\ClassLibrary\MSVC
File Attachment(s):
ImageViewer_Copy.zip (132kb) downloaded 40 time(s).
 
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-2024, Yet Another Forum.NET
This page was generated in 0.056 seconds.