TIFF Image Delete

Example requests (Development Tools) including source code requests

Moderator: Technical Support Team

TIFF Image Delete

Postby ScottWGast » Thu Jul 16, 2009 12:11 pm

This is what I have so far, but I can't seem to get the TIFF image to refresh after I delete a page... if I manually reload the TIFF file, it shows that the page has been deleted.

m_hDib:=(ActiveMDIChild as TMDIChild).Tiff1.hDib;
if m_hDib>0 then
begin
MainForm.Enabled:=false;
BITiffobj:=TBITiff.Create((ActiveMDIChild as TMDIChild));
BITiffobj.DeleteTiffImage((ActiveMDIChild as TMDIChild).Caption, (ActiveMDIChild as TMDIChild).nCurrentPage, false);
BITiffobj.ReorderTiffFile((ActiveMDIChild as TMDIChild).Caption);

if BITiffobj.GetNumberOfImagesInTiffFile((ActiveMDIChild as TMDIChild).Caption) > 0 then
begin
Self.ToolsPageBackExecute(self);
Self.ToolsPageForwExecute(self);
end;

MainForm.Enabled:=true;
MainForm.SetFocus;
end;
ScottWGast
 
Posts: 6
Joined: Wed Jul 15, 2009 9:42 am

Return to Example requests



Who is online

Users browsing this forum: No registered users and 1 guest

cron