This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, February 11, 2013 8:25:58 PM(UTC)
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?
#2
Posted
:
Wednesday, February 13, 2013 6:24:20 AM(UTC)
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)
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)
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
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.