473,469 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Fitting image on Canvas Control

7 New Member
Hello,

I am facing one problem with canvas control of Visual Editor on eclipse galileo.
I would like to show the image onto canvas in fitted size.
But when the image is larger than the canvas, it became out of bound and I could not see the whole image.
So, could you suggest me how to fixed the image on canvas control to be able to see the whole image.
And then, the scroll bars of the canvas do not work.
I am a new learner of java so I don't know about java much.
I attach a text file with my code inside.


Thank You.

Regards,
Myo Thura Lwin
Attached Files
File Type: txt CanvasSample.txt (4.2 KB, 471 views)
Jun 9 '10 #1
1 2026
ThatThatGuy
449 Recognized Expert Contributor
@Myo Thura Lwin
I don't know about canvas..
if canvas is a control then try putting it inside the JScrollPane
Jun 11 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Hemant | last post by:
I am using the Kodak Image Edit Control in one of the applications that I have been working in .Net. However, one of my requirement is to zoom the image to best fit the window size available. ...
4
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to...
1
by: Roberto Castro | last post by:
I have some problems with the way I am showing the BLOB fields in the Image web controls. It does work on my localhost though sometimes I need to hit Refresh for the images to load properly....
1
by: Tina | last post by:
I am trying to adjust the size of an image web control but if I try to say myimage.height = 200 it says that an integer cannot be converted to a webcontrol unit. I also tried a ctype cast but that...
1
by: Ola Myrgart | last post by:
Hi ! I have a problem how to display an image in a different page together with some text. The image is stored in a SQL DB and the insertfunction works well. It´s when I try to wiew the image on...
2
by: John Austin | last post by:
I thought I would experiment for the first time with an Image standard control in VS 2005. I pressed create web site, I copied a jpg into the App_Data folder, added an image control to Default.aspx...
4
by: jaggi80 | last post by:
Hi everybody, I have to use an Image Edit control in my VB project for Editing a image, but I am unable to add Image Edit Control in my VB project. While adding IMGEDIT.OCX from add component window...
1
by: zee | last post by:
hello Is it possible to use Document Image Viewer Control in ASP.NET(2.0) because 1. The IDE is not adding this component in the toolbox and 2. when i use it so it give me following error ...
0
by: hardieca | last post by:
Hi, I would like to create an adapter for the image web control to cure a pet peeve of mine. Currently, if I write out: <asp:Image ImageUrl="myPic.jpg" AlternateText="Some text"...
2
by: crapycoder | last post by:
hi all, please help....!! i have added a kodak image edit control on my form. when i click get image button, "abc.img" will be displayed. i have a button named "copy to clipboard". when...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.