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 : Wednesday, October 24, 2012 1:08:35 AM(UTC)
bnvelarde

Groups: Registered
Posts: 34


Hi there is this project which the client requires a print preview where they can drag the image wherever they want to position it inside the page.

Its like Photoshop.

Is there some way I can achieve something like this using leadtools?

What the needed .dlls, if so?
I want to use vb.net for this.
 

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 : Wednesday, October 24, 2012 6:09:20 AM(UTC)

Ibrahim  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Bernadette,
Yes, that should be easy.
You need to create a form in the shape of the paper, and then add mouse handling, and enable the user to move the control on the form.
You can then implement printing using our RasterImagePrinter Class and make the final output on paper similar to what's displayed on the form.
 
#3 Posted : Wednesday, October 24, 2012 7:46:46 PM(UTC)
bnvelarde

Groups: Registered
Posts: 34


Wow, is that really easy to do?

What form is it? Do you have a simple sample software for this?

I took a look at the "Load Transparent Image in RasterImage", but it does not meet sample im looking for.

I uploaded an image of the said project with the their Print Preview setup.

Now my only problem is how to view the image inside the page where the user can position/drag the image to wherever they want the image to be inside the page.
bnvelarde attached the following image(s):
printpreview.JPG
 
#4 Posted : Friday, October 26, 2012 6:23:17 AM(UTC)

JamesD  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Attached is a sample project to shows how to implement dragging a RasterImageViewer that has been placed in a white Panel control.

In order to print the displayed image, you would need to create a new RasterImage of the size of your Panel, at the DPI you require. Then use the CombineCommand class to combine the image at the location in the panel, with the blank RasterImage. You can then use the RasterImagePrinter class to print the combined image. Let me know if you have any questions about how to implement this.

RasterImage Constructor:
http://www.leadtools.com/help/leadtools/v175/dh/l/leadtools~leadtools.rasterimage~_ctor(rastermemoryflags,int32,int32,int32,rasterbyteorder,rasterviewperspective,rastercolor[],intptr,int64).html

CombineCommand Class:
http://www.leadtools.com/help/leadtools/v175/dh/pe/leadtools.imageprocessing.effects~leadtools.imageprocessing.effects.combinecommand.html

RasterImagePrinter Class:
http://www.leadtools.com/help/leadtools/v175/dh/wi/leadtools.winforms~leadtools.winforms.rasterimageprinter.html

File Attachment(s):
v175-Drag-RasterImageViewer.zip (19kb) downloaded 119 time(s).
 
#5 Posted : Monday, November 5, 2012 6:28:03 PM(UTC)
bnvelarde

Groups: Registered
Posts: 34


Can i have a vb.net sample??
 
#6 Posted : Wednesday, November 7, 2012 2:49:57 AM(UTC)

Ibrahim  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Here is the same project in VB.net.
File Attachment(s):
VBNET_v175_DragRasterImageViewer.zip (14kb) downloaded 118 time(s).
 
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.106 seconds.