Home | About us | Overview | Software - Download | Evaluate | Order | Support | Contact | F.A.Q. | Documentations | Blog | Newsletter
Loading...

Problem to select a page

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Problem to select a page

Postby Syn17 » Wed Jul 28, 2010 11:05 am

Hi,

I want to print the second page of a TIF file but before, i want to hide a part of it.

so i use :
GDVIEWER with GetRectValues to collect mouse selection,
GDIMAGING with createimagefromfile
GDIMAGIN argb to have white color
GDIMAGIN DrawFillRectangle to draw a white rectangle
GDIMAGIN PrintImageDialogFit

This method always print the first page of the document with a perfect mask (white rectangle).

Thx to guide me
Syn17
 
Posts: 5
Joined: Fri Jul 09, 2010 2:41 pm

Re: Problem to select a page

Postby Loïc » Fri Jul 30, 2010 11:57 am

Hi,

Here a code to do that:

Code: Select all
  Dim ImageID As Long
  Dim nTop As Long
  Dim nLeft As Long
  Dim nWidth As Long
  Dim nHeight As Long
 
  Call GdViewer1.GetRectValues(nLeft, nTop, nWidth, nHeight)
  ImageID = Imaging1.CreateClonedImage(GdViewer1.GetNativeImage)
  Call Imaging1.DrawFillRectangle(nLeft, nTop, nWidth, nHeight, Imaging1.argb(255, 255, 255, 255))
  Imaging1.PrintImage
  Imaging1.CloseNativeImage


Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4226
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest

cron