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, October 27, 2008 9:26:47 PM(UTC)
Gunasekaran

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..


 

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 : Tuesday, October 28, 2008 4:09:31 AM(UTC)
Maen Hasan

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
 
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.041 seconds.