Setting image zoom and offset properties in Forms 6
I have a Forms 6 form with an image item with "Sizing Style" set to "Adjust" and "Show Palette" set to "Yes".
When running the application, the users typically need to view approximately the same region of a set of images. Currently, they have to reapply their favorite zoom settings and move to the correct region whenever a new image is displayed. Now they would like the images to be displayed with their personal zoom and offset settings applied automatically.
Is it possible to figure out the zoom factor and region which is displayed in an image item? As an alternative, is it possible to intercept clicks on the image palette buttons?
Thanks, Beat
your test_image table better to have another primary key item like file_id number with table trigger to sequence generating its value for IF INSERTING event, or it will have no handle to get the image back.
Similar Messages
-
Upon Loading of page, Setting the Top and Left properties of a TextField
Hello again,
I would just like to ask for suggestions on how to successfully set the top and left properties of a Textfield as soon as the page is loaded.
Thru Giri's help, I was able to do this with the push of a button. What I would need to do right now is to set it as soon as the page is loaded.
Thanks!Hi Jim,
It is not clear what you are trying to do here. If you want to set the top and left properties of a component when the page is loaded all you have to do is set it at design time itself. If the properties need to be set the second time the page loads then the code can be used in the event handler which submits the page.
It would help if you could explain the use case for setting the properties of a component when the page is loaded.
Cheers
Giri -
Setting the Top and Left properties during runtime, depending on...
hi guys,
it's me again with the same question, but same scenario...
but probably with a bit clearer detail now...
actually, what i wanna do is that although i have set the top and left properties at design time, as soon as the page opens i wanna be able to do the following:
if ( userlevel == 1 ) {
textfield1.setStyle("top: 100...");
} else if ( userlevel == 2 ) {
textfield1.setStyle("top: 500...");
thanks for your time =)The style properties CAN be set in the prerender call. Unfortunately, the requirement is that the component (text field in your case) has to have an unset property in the Design->properties window. (Or in the actual jsp code, which should be identical).
My main issue with this is SJC2's handling of this in the visual window. If i want to have a lot of components that are designed before run-time but placed during run-time, they all are a mess on the screen. I wish there was another property (in the properties window) that would be a checkbox, like "Use static layout". I, probably like others, am using a layout panel (grid) that has several other components in there. I want to be able to move this set of components at run-time, but to do so, I need to unset the layout panel's style. This causes my inside components to shift to the top left of my page, making a mess in the design window.
If any SJC developers are out there, please help! It would be great to somehow mitigate the static/dynamic properties/display issue. (Like, i want to have buttons with dynamic names (for localization), but basically, i have to have a bunch of blank buttons/text on the screen for all my pages because of the static requirement. At least, MyEclipse and others will put the id value if the text/label value is blank.
Chris -
How to set buildID.xml and custom.properties in SDK
Hello,
I just completed a new build deployment of SAP ME5.2, because after I deployed the new version, I don't think I have set a
correct version number.Can you someone give me a sample how to set the buildID.xml and custom.properties? I am a new on the SAP ME5.2
The Base version is ME_Base_5.2.5.16.5_netweaver-71_Update.zip and
MEClient_Base_5.2.5.16.5_netweaver-71_Update.zip. the HB customzation
version is ME_xxxxxx_2.0.0.0.x_netweaver-71.
Within the sap note 1484551, you mentioned we need change the
SDKInstallDir/build/buildID.xml file, here is the context of the file:
buildID.xml -
<?xml version="1.0" encoding="UTF-8"?>
<buildID xmlns:xs="http://www.w3.org/2001/XMLSchema">
<customer>XXXXXX</customer>
<revision>1.0.0.0</revision>
<build>1</build>
</buildID>
buildID.xml -
1. how can we change the revision and build?
There is another file BuildToolDir/build/script/custom.properties, here
is the file context:
custom.properties----
This file contains build properties used to configure the build
system.
The name of the software vendor implementing the customizations.
vendor.name=xxxxxxxxx
Vendor build identifier. This value is used to uniquely identify
customizations built by a particular vendor for a particular customer
and base
application version.
This is also used in path locations and in naming certain build
artifacts, like the custom EJB module and the utility classes archive.
vendor.id=xxxxxxxxx
The installation of the J2EE engine installed in the development
environment.
ex. C:/usr/sap/CE1\J00
j2ee.instance.dir=J2EEInstanceDir
The web context path used to access the main web application. This
is used by the build to set the
context-root value in application.xml after an update has been
imported.
web.context.path=
The web context path used to access the production XML interface web
application. This is used by the build to set the
context-root value in application.xml after an update has been
imported.
xml.context.path=
The web context path to access resources from the web extension
application, like images and work instruction HTML files.
web-ext.context.path=web-ext
The target database vendor. Valid values are 'oracle' or 'sqlserver'.db.vendor=ORACLE
The JDBC driver configured for the application server.
db.drivername=VMJDBC
JDBC connection propertes for the WIP (Work In Process) database.
This is the primary application database.
db.wip.driverclassname=
db.wip.driver.url=
db.wip.host=
db.wip.port=
db.wip.sid=
db.wip.user=
db.wip.password=
JDBC connection propertes for the ODS (Open Data Store) database.
This is the offline reporting and archiving database.
db.ods.driverclassname=
db.ods.driver.url=
db.ods.host=
db.ods.port=
db.ods.sid=
db.ods.user=
db.ods.password=
Flag indicating whether to add DPMO NC codes to NC idat files when a
new update is imported. This value is initially
set by the installer according the the user selection.
dpmo.nc.codes=
The default locale used by the production system. The default locale
is the locale used to display locale
specific text and messages when the requested locale is not
available. This property does not need to
be set if the default locale is english.
default.locale=en
Used when running the build from Eclipse to locate the java compiler
used by the WebLogic EJB compiler.
jdk.home=C:/Program Files/Java/jdk1.5.0_20
Compiler debug mode. If set to 'true', debug symbols will be
compiled into the byte code.
compile.debug=true
Keystore alias
security.alias=xxxxx
Keystore password
security.storepass=ChangeIt
Key password
security.keypass=ChangeIt
Keystore type (jks=default,jceks,pkcs12)
security.storetype=jks
Optional source control build identifier that is to be displayed with
standard version information.
scs.build.ID=
Optional extended version information to be displayed with standard
version information.
ext.info=
custom.properties----
2. How can we change this here?
Regards,
Leon Lu
Edited by: Leon Lu on Aug 4, 2011 11:14 AM
Edited by: Leon Lu on Aug 4, 2011 11:21 AMHi,
I created one request with logo in the header an page in the footer etc. and called StyleSheet. After you can import this formats by each request.
You can do this in compound layout.
Regards,
Stefan -
How to set default Header and Footer properties for PDF
Hi,
Currently we are manually setting the 'PDF and Print Control' properties for each and every dashboard. We understand that print pdf properties are controlled by pdfstyle.fst file under $SAROOTDIR\web\app\res\s_oracle10\b_mozilla_4 but don't have the exact property names to include in header and footer section.
By default, we want to include company logo, the saved name of the report/dashboard tab and created time in the header. And page# in the footer.
Where can we set these and what properties names should be used in order for these to be set for every new request/dashboard that is created.
Thanks and RegardsHi,
I created one request with logo in the header an page in the footer etc. and called StyleSheet. After you can import this formats by each request.
You can do this in compound layout.
Regards,
Stefan -
Hi,
I've been working in an app that takes images, converts them to a matrix and then back to images. I use jpeg files. I noticed that an image of 1024x768 thats 500Kb size ends up 1024x768 of 102Kb size.
I checked the images and noticed that for an unknown reason my app take imges of, lets say 300dpi and turns them into 72dpi images.
I would like to know if there is anyway i can tell my app to store the image with 100dpi. I would also like to know if there is any way i can change its bits depth from 24bits to 8 or 4bits.
I did some research but i dont know how to use this:
Package com.sun.image.codec.jpeg
Ideas?
Thanks a lot.Rodney_McKay wrote:
SoulTech2012 wrote:
i'm sorry you're having so much trouble with this concept
go to Google and type in "image resolution vs. dpi"
this links seems like a good one:
http://www.rideau-info.com/photos/mythdpi.html
I'm sorry you're having so much trouble with the difference between technical terms and the attempt of simple users to explain things in simple words so they can understand.sounds like backpeddling to me
either way, this is a technical forum, get over it
statements must be technically accurate lest you send a noob in the wrong direction
I gave you the definition from a dictionary and an encyclopedia, and you put a link to some unknown site that is intended for simple users of photo editing software.Look, I can't help it if you found some bad definitions.
But that doesn't change the fact that image resolution has nothing to do with dpi
Don't believe everything you read in the Internet...exactly!
DPI is not even a term it's just an acronym of a unit.
If you right click in a JPEG in Windows OS and select Properties->Summary you will see the Horizontal and Vertical resolution of the JPEG in DPI.for the last time, there is the resolution of the image, and then there is the DPI when rendered to the screen or printed on paper, THEY AREN'T THE SAME THING
But wait - you will say Microsoft is also wrong.
I agree that it is confusing this way, but life is hard...it is not confusing to me in the slightest
look, you can argue for your beliefs all you like, i'm done with this topic
furthermore, it's been discussed here many times -
Using Slider to Control an Image Zoom
I want to use the control Slider1 to Control the Zoom of Sectional Viewer image control. Can't quite figure that out. Any help?
Hi Matthew,
Until the feature is available, there is a possible workaround you could use. It requires more work but you could probably get something close to a zoom effect.
The trick is to change the size of the image (Width and Height) and its
X and Y position to control where the zoom happens. The Image will end-up taking more space than the screen so you will need to have elements on top of it so the user does not see the overflow.
For example, to zoom on the top left corner, try the following:
- Set the image Image Position property to Fill
- Set the image Height and Width properties to its current value +
ZoomSlider!Value*10
If you want to zoom to the center:
- Also set the image X and Y properties to their current values +
ZoomSlider!Value*5
Remember the image visual will be quite large and you will need to place elements on top of it (e.g. rectangles) to hide the overflow.
This is clearly a workaround yet you can get close to a zoom effect.
Olivier -
Can you set PDF zoom level when exporting from ID?
I do many documents for proof and regardless of how the end user is going to view them, I like them to open as a full page ("Fit Page" zoom level) - I want the viewer to get the overall impact of the layout before they see just the top half or upper corner.
Right now, I export from ID and have to manually set the zoom level in Properties from within Acrobat Pro. Is there ANY way to set a default export zoom level to save this step, which I have to do many times on most days?Only if you export using File > Export > Adobe PDF (Interactive). Not if you're using File > Export > Adobe PDF (Print),
-
Navigation, Page and Magnification properties in PDF export
within the AOM PDF, I'd like to have the ability to set the Layout and Magnification properties similar to Acrobat Pro:
Navigation tab:
Page Layout:
Magnification:
thanks.Hi,
SAP standard Webtemplate Export does not support Pagebreaks.
Also CSS-Styles Atributes PAGE-BREAK-BEFORE: Always will not work because SAP is ingnoring custom HTML. Only way is to consider 3rd Party Tools which will export the HTML of the executed Webtemplate to PDF or other formats.
In Report Designer you will be able to include Page breaks on Group level changes of BI data.
best regards,
Kai Wachter -
I have CS5 running on Windows but if I call an image into Photoshop it only displays on one view setting. Zoom in or out and I get a chequered grey background. Any suggestions how to rectify please?
<moved from Downloading, Installing, Setting Up to Photoshop General Discussion>
-
How to set image source path in formsweb.cfg file in forms 11g
Hi,
I had written HTML code in the formsweb.cfg file in forms 11g. In the below code i am unable to retrive image file(i.e., .gif, .jpeg) from the server or local machine.
In the below HTML code i set image source in the image tag as below:
<img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_04.GIF"
Is this correct path to fetch the images from the server or local machine .
Please help me out how to set path for image in html or is there any alternate process to retrive images.
Here is the code :
[INDIVIDUALUAT]
workingDirectory=D:\Aims10dev\Work
form=LMstartup.fmx
userid=rmenu/rmenu@RLIFEQA64
codebase=/forms/java
imageBase=codebase
width=1005
height=750
WebUtilArchive=/forms/java/frmwebutil.jar,/forms/webutil/jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
archive_jini=frmall_jinit.jar,life-icons-round.jar,Agilis_Icon.jar,life_Icon.jar,personalize.jar,hyperlink.jar,amazingbutton.jar
archive=frmall.jar
separateFrame=False
lookandfeel=Generic
EndUserMonitoringURL=True
usesdi=yes
#HTMLbeforeForm= <table width="1005" border="0" cellspacing="0" cellpadding="0"><tr><td width="200"><img src="/forms/html/agilis-life-logo.gif" width="200" height="80" /></td><td width="10"><img src="/forms/html/agilis-life-new11_02.gif" width="36" height="80" /></td><td width="805" valign="top" background="/forms/html/agilis-life-new11_03.gif"></td></tr></td></tr></table>
HTMLbeforeForm=<body topmargin="0" leftmargin="0" > <table width="1005" height="100" border="0" cellspacing="0" cellpadding="0"><tr><td width="200" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-logo.gif" width="200" height="80" /></td><td width="10" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_02.gif" width="36" height="80" /></td><td width="550" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_03.gif" width="550" height="80" /></td><td valign="bottom"><table width="219" height="90" border="0" cellspacing="0" cellpadding="0"><tr><td height="36" valign="bottom" align="center"><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agile-logo.jpg" height="36"></td></tr><tr><td height="10" valign="bottom"> <div align="right"><span style="font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; text-decoration:none; color:#00000; " >Home | Change Password | Logout</span></div></td></tr><tr><td colspan="3" valign="bottom"><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_04.GIF" width="100%" height="39" /></td></tr></table></td></tr></td></tr></table></body>AFAIK, this is not the correct way to set the image location.
We call the working directory as context, so inside the context root along with WEB-INF, maintain a folder with name img and put all the images in that directory.
You can use either .\<image_folder> or the optimum way would be (if you are using JSPs) to use getContext() method and traverse accordingly.
FYI,,, using getContext() will give you context root directory, from there it is as simple as accessing any other folder.
Hope this answers your question.
Cheers,
Jeets. -
How do i set an image item to null on a form?
How do i set an image item to null on a form?
clear_item, wont work.
this is what i actually need:
theres is form which executes the execute_query to insert into the database and theres an image item on it as well which is also a database item and after insertion it doesnt clear up, it still retains the image and i want it to clear up.
Hope you understand.
Thanks -
envelope wizard keeps printing from phototray. have changed setting to main tray in properties and cont. phototray???
Unfortunately any image file sent to ePrint will automatically be printed out on photo paper with printers that have a seperate photo tray.
Depending on how you are ePrinting, you do have a few options though. If you are printing from a Apple or Android device, their is an app that will allow you to choose the paper size and type when printing.
For Apple products, you want the HP ePrint app.
For Android based devices, you want the HP ePrint Home & Biz app.
If you are printing from a computer, you can download the ePrint Mobile Driver and that will also give you those options.
Reply back with how you are printing and let me know if you need any help getting this set up.
-------------How do I give Kudos? | How do I mark a post as Solved? -------------------------------------------------------- -
Automatically zoom and crop an image to fit in a square
I've got an mx:Image which is loading an image from the web. I don't know how big the image will be in advance. I'd like the loaded image to fit within the mx:Image's square frame by zooming and cropping off the sides or top/bottom as needed. In other words, if the image frame is 64x64 and the loaded image is 70x64, it will be centered and lose a few pixels on the right and left sides. Is it possible to do automatically? I've played with maintainAspectRatio and scaleContent but I haven't been able to get what I want.
In an ideal world we would use a high resolution version with a 100% width set for every device (and screen size). Because of bandwidth reasons, the page should load only a version of the image intended for a specific width range.
Sometime in the future we will (probably) be able to use this:
<picture width="500" height="500">
<source media="(min-width: 45em)" src="large.jpg">
<source media="(min-width: 18em)" src="med.jpg">
<source src="small.jpg">
<img src="small.jpg" alt="">
<p>Accessible text</p>
</picture>
However, this will not yet work. Therefore, ideally, a polyfill picturefill method that works quite well can alternatively be used:
https://github.com/scottjehl/picturefill
Solution:
Call the picturefill.js (see above url for more information and sample code)
body:
<span data-picture data-alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
<span data-src="small.jpg"></span>
<span data-src="medium.jpg" data-media="(min-width: 400px)"></span>
<span data-src="large.jpg" data-media="(min-width: 800px)"></span>
<span data-src="extralarge.jpg" data-media="(min-width: 1000px)"></span>
<!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. -->
<noscript>
<img src="external/imgs/small.jpg" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
</noscript>
</span>
This works in all browsers and devices. On a mobile platform only the lower resolution image will be loaded up. -
Hi to all,
Compare these images:
Zoom with Firefox under Linux
Zoom with Google Chrome under Linux
Firefox under Windows
(image taken from: http://www.tomshw.it/cont/articolo/cons … 26/13.html )
as you can see:
* Firefox under Linux: image zoom is done without antialiasing
* Firefox under Windows: image zoom is done with antialiasing
* Chrome under Linux: image zoom is done with antialiasing
is there any way to fix this issue with Firefox under Linux?Ramses de Norre wrote:Google reveals much info. Look at the firefox and ubuntu bug trackers, both have extensive discussions about the issue.
Hi,
I'm not sure if I get your meaning here.
I googled around, and I find mostly references to font problems - which is not the issue here - and the imagezoom.defaultGlobalZoom setting, which does not seem related to activating / deactivating antialising for images when zooming.
I have the same issues as trapanator. FF in arch64 does not apply antialising to the images when zooming, but opera does. Also FF in windows does. I took a look in the PKGBUILD, but did not find anything suggesting that the antialiasing is disabled at compile time - so it seems to be a configuration issue.
Any ideas?
Thanks!
Best regards,
Eduardo
Maybe you are looking for
-
Hi, Hi experts, I need to create a purchasing cube containing data at PO level. The data that client is after is coming from following datasources: 2LIS_02_CGR 2LIS_02_ACC 2LIS_02_SGR I need to build cube bringing data from above datasources. Now wha
-
Undelete a line item from Sales Order
Hi, Is it possible to un-delete an item from the sales order? If yes, how can we do this? please advice. Thanks
-
Lost my program on my computer ... help!
I had some computer problems ... several programs lost ... including my palm calendar. I have a palm centro. I can see all my calendar "name" and it has files ... however, I can not open Palm desktop. I have tried to reinstall from this website ho
-
what are the cases when a purchase order and goods receipt po are left open even though it already has an a/p invoice?
-
How can previous purchases be downloaded. The help instructions don't match what is on the page of the previous purchases.