LEADTOOLS Support
General
General Questions
how to get selected image from sub cell
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, October 27, 2008 9:26:47 PM(UTC)
Groups: Registered
Posts: 53
Hi Iam using licensed version of Leadtool 15.
1. I have inserted image in subcell and want to store selected image from subcell to rasterimage?
2.Also want to perform action like offset sacle separately for subcell..which should affect other imageof subcell in the same cells..How shall I proceed please guide me..
#2
Posted
:
Tuesday, October 28, 2008 4:09:31 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Guna,
To get the selected image from sub cell and save it, please try the following code:
+-------------+
int SubCellIndex = 0;
int SelectedCellIndex = 0;
for (int i = 0; i < _medicalViewer.Cells.Count; i++)
{
if (_medicalViewer.Cells[i].Selected)
SelectedCellIndex = i;
}
MedicalViewerStack stack = (MedicalViewerStack)_medicalViewer.GetActionProperties(MedicalViewerActionType.Stack, SelectedCellIndex);
SubCellIndex = stack.ActiveSubCell + stack.ScrollValue;
_codecs.Save(_medicalViewer.Cells[SelectedCellIndex].Image,
@"c:\SubCell.jpg",
RasterImageFormat.Jpeg,
24,
SubCellIndex+1,
SubCellIndex+1,
1,
CodecsSavePageMode.Overwrite);
+-------------+
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
General
General Questions
how to get selected image from sub cell
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.