Html 2 jpg ?
I need an API which can load a html (or a URL)
and converts it to an image.
It is a kind a website screenshot.
My questions are:
- is there already something that I can use?
- if not, please direct me in constructing one
Thank you.
I need an API which can load a html (or a URL)souds weird - do you know what HTML is? do you want to load an image from the net or construct it from data written in HTML?
Similar Messages
-
What is the best way to get data from a spreadsheet into an HTML table?
I am using libreoffice, and I have it set to collate all the information I enter and output it to a simple table within the program like this:
http://imageshack.us/a/img717/5144/spreadsheeta.jpg
I want to get this information after sorting it and put it into the following html table within dreamweaver:
http://imageshack.us/a/img28/8872/htmls.jpg
what is the best method for getting the info from A to B?before:
<table id="tbl-m">
<tr class="tbl-hd">
<td class="tbl-pos-width">pos</td>
<td class="tbl-team-width">team</td>
<td class="tbl-p-w-d-l-p">pld</td>
<td class="tbl-p-w-d-l-p">won</td>
<td class="tbl-p-w-d-l-p">drwn</td>
<td class="tbl-p-w-d-l-p">lost</td>
<td class="tbl-p-w-d-l-p">pts</td>
</tr>
<tr class="tbl-row-b">
<td class="tbl-pos-width">1</td>
<td class="tbl-team-width">Team Name 1</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-a">
<td class="tbl-pos-width">2</td>
<td class="tbl-team-width">Team Name 2</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-b">
<td class="tbl-pos-width">3</td>
<td class="tbl-team-width">Team Name 3</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-a">
<td class="tbl-pos-width">4</td>
<td class="tbl-team-width">Team Name 4</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-b">
<td class="tbl-pos-width">5</td>
<td class="tbl-team-width">Team Name 5</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-a">
<td class="tbl-pos-width">6</td>
<td class="tbl-team-width">Team Name 6</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-b">
<td class="tbl-pos-width">7</td>
<td class="tbl-team-width">Team Name 7</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-a">
<td class="tbl-pos-width">8</td>
<td class="tbl-team-width">Team Name 8</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-b">
<td class="tbl-pos-width">9</td>
<td class="tbl-team-width">Team Name 9</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-a">
<td class="tbl-pos-width">10</td>
<td class="tbl-team-width">Team Name 10</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-b">
<td class="tbl-pos-width">11</td>
<td class="tbl-team-width">Team Name 11</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-a">
<td class="tbl-pos-width">12</td>
<td class="tbl-team-width">Team Name 12</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-b">
<td class="tbl-pos-width">13</td>
<td class="tbl-team-width">Team Name 13</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-a">
<td class="tbl-pos-width">14</td>
<td class="tbl-team-width">Team Name 14</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-b">
<td class="tbl-pos-width">15</td>
<td class="tbl-team-width">Team Name 15</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
<tr class="tbl-row-a">
<td class="tbl-pos-width">16</td>
<td class="tbl-team-width">Team Name 16</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
<td class="tbl-p-w-d-l-p">0</td>
</tr>
</table>
after:
<table>
<tr>
<td>Pos</td>
<td>Team</td>
<td>Pld</td>
<td>Won</td>
<td>Drwn</td>
<td>Lost</td>
<td>Pts</td>
</tr>
<tr>
<td>1</td>
<td>Team 1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>2</td>
<td>Team 2</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>3</td>
<td>Team 3</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>4</td>
<td>Team 4</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>5</td>
<td>Team 5</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>6</td>
<td>Team 6</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>7</td>
<td>Team 7</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>8</td>
<td>Team 8</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>9</td>
<td>Team 9</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>10</td>
<td>Team 10</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>11</td>
<td>Team 11</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>12</td>
<td>Team 12</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>13</td>
<td>Team 13</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>14</td>
<td>Team 14</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>15</td>
<td>Team 15</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>16</td>
<td>Team 16</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
</table> -
Safari adding .html to all attachments
I have used Safari for a couple of years now, and as of yesterday, all attachments I try to download now have a .html extension added to it,
i.e. doc.html, exe.html, jpg.html thus being unable to open the files
when they have been downloaded. I have tried downloading the same files
using AOL, and FireFox and .Mac and no problems whatever.
The attachments sitting in the e-mail just shows the .doc, or .exe or .jpg
but while downloading, Safari adds the .html extension.
Any help will surely be appreciated.
TomThis problem began happening to me today. I tried resetting cache, closing Safari and reopening, looking for DeBug settings. Finally, after I reset Safari by choosing Safari > Reset Safari... then closed out the browser and opened it up again, the problem went away. Hope it works for you!
-
Including static html file (WebServer) with JSP (App server)?
Hi,
I want to know how can a static html file that runs on a Web Server (iPlanet) in a JSP that runs on an App Server (WebLogic 6.1).
What would be the tag used and how the html file is referenced? Is there any other extra settings involved while integrating iPlanet with WebLogic 6.1?
Responses are highly appreciated.
Thanks and Regards,
Madanlal.Web servers usually work with the MIME Types. In the mime type settings will determine how a request for a particular mime type is served. Usually HTML, JPG,GIF... are served by the web server itself. A JSP request will be forwarded to the APP Server for peocessing.
The HTML and the image files need to be in a directory visible to the web server from the document root.
See the files
config\mime.types
config\obj.conf
under the web server installation directory.
Refer to the web server's admin guide for more info. -
After using Firefox 4.0.1 on Win7 x64 for almost two weeks, I still have the
following questions/problems, for which I just can't find the solutions. Please help.
(1)
Is there a way to change the shape of the tabs to resemble real tabs, sort of like those tabs shown in the picture attached with the first reply I posted below.
(2)
I notice that when there are more than 6 tabs, only the current tab has a close button.
Can there be a close button on every tab, no matter how many tabs are on the tab strip?
(3)
When you drag a file ( .html, .jpg, etc) from Windows Desktop or Windows Explorer and then drop it into Firefox, the file will be opened in the current tab.
Can it be opened in a new tab?
(4)
Is there a convenient way to select multiple images on the same web page and open them all, each one in a new tab, with just one simple action, e.g., a toolbar button click, a keyboard shortcut, a mouse gesture, etc. ?
(5)
[ I asked this question a few days ago, but still got no answer. ]
After the currently active tab is closed, I want the previously active tab to be displayed automatically, no matter what its position is on the tab strip, and no matter if it has any kind of relation with the closed tab. Just previously active.
Can that be achieved?
(6)
Although "Use small icons" in "Customize Toolbar" is not selected, I still feel the icons on the Bookmarks Toolbar are too small. Can the size of those Boookmarks Toolbar icons be increased (scaled up)?
Just the Bookmarks Toolbar icons. The other toolbars don't matter.Attaching the picture for the tab shape I want...
-
Replacing Mobile Me Gallery with ???
I am very aware that the Mobile Me Web Photo Galleries are going away.
It really was a very good gallery, sorry it is going away as the best feature was family/friend viewers could easily download their fav photos. And the photo was the actual photo and not and html jpg.jpg smaller photo
Is there a software service out there that does the same thing.
I have looked at flicker, picasa and others and they do not do this..
they do not allow me to add my family google abalytics, and also do make it it easy to upload multiple/batch photos.
Thx Much for any suggestions anyone can makeI use SmugMug.
Regards
TD -
Open different URLs in same window
I'm developing a program that will be run remotely.
Next to each control or indicator, I have a little help button that opens up a URL with some information explaining what the control does or indicator means. The problem is that I don't want each help button to open up in a new window. I'd like to have the help info open in a pop-up window. If the user then clicks on a different help icon, then the info in the pop-up window changes (sort of like Labview Context help) as opposed to having a bunch of windows open.
Is there anyway to control which window the URL opens in?
Brianthis may help, you should look it up and see if it can be a solution.
Message Edited by Harold Timmis on 10-11-2009 05:04 AM
Harold Timmis
[email protected]
Orlando,Fl
*Kudos always welcome
Attachments:
append to HTML.jpg 38 KB
html vi's.jpg 30 KB -
Email signatures not displaying in received emails.
I can't see the signatures in the emails which I received from other people (not my own signatures in emails I sent out). All my emails are viewed in HTML format. I have no problem when I send an emails with my signature. I still sees it when I received
the reply they reply to me.
All I see is their signatures became html/jpg/pdf files IN the attachments.
Please help with this issue. It is driving me nuts.
Thanks!The problem is likely with the source, not the destination. If you're not seeing signatures on emails from other people, then they are probably not adding a signature.
If you're seeing a 'distorted' signature with email attachments for the graphics, then either organization may have a policy which prevents HTML emails. If an email is forced to plain text, it will alter the view that you are seeing.
- Chris Ream -
**Remember, if you find a post that is helpful, or is the answer, please mark it appropriately.** -
I just set up my 6100 for eprint. Is there a list of file types which eprint will convert to be compatible with my 6100?
I know PDF and Word files work, but several others have I tried do not.
This question was solved.
View Solution.Hi there, the following file types are supported by the ePrint service:
Microsoft Word
Microsoft PowerPoint
Microsoft Excel*
.pdf
.txt
HTML
.jpg
.gif
.png
.tiff
.bmp
For more reasons why your ePrint jobs may not be completing check out this support document
Best.
If my reply helped you, feel free to click on the Kudos button (hover over the "thumbs up").
If my reply solved your problem please click on the Accepted Solution button so other Forum users may benefit from viewing the post.
I am an HP employee. -
Cannot generate GIF file into PDF file
Use Acrobat 8 professional to create a PDF file from html. However the GIF image is not generated in the PDF file. JPG file is OK. All the html, jpg and gif files are in the same directory. The GIF image can be viewed if the html file is opened by IE.
Here is my html file:All the HTML and GIF files are under the same local directory. If I use IE to view the HTML file, the GIF images are loaded and displayed. The page can be printed into a PDF file with Adobe PDF writer (I thought it should be Acrobat Distiller 8). All the images (GIF and JPG) are printed too.
However, when I use "Convert current web page to an Adobe PDF file" in the IE tool bar or "Create a PDF" in the Acrobat tool bar, the GIF images are not built into the PDF. The JPG images in the same directory are built. It is strange. -
Uploading my genealogical site to Iweb?
Hi there,
I'm building my genealogical tree through Reunion 8 for Mac and that software allows you to prepare your tree to be uploaded on the web. My question: can I use Iweb to upload the site? if so, how do I do that? Are there any tutorials for that?
Your help is greatly appreciated!
thanks,
Michele
Imac G5 Mac OS X (10.4.4)okay i am not quite sure how your program exports to web - but here are three methods:
1. Export your tree as a image (png or jpg) and simply drag that into iWeb!
2. The second way is to create a link from iWeb to your ONE file.
2a) typer some text or select a image and press on the inspector button!
2b) go to hyperlink inspector (very left blue arrow) and choose link to file.
2c) now your image or text should link to a file, the gene-tree!
3. If your tree is a .html file and a folder, then i suggest you copy them to the underlined folder:
iDisk/Web/Sites/
3a) then from iWeb, select a object or text and activate it as a link.
3b) the link should go to an external site, which if you placed the files in the folder above:
http://web.mac.com/USERNAME/filename.extension
replace the username with what your username is and the filename with what your file is named and in what suffix it ends, eg.: .html, .jpg, .png, .doc or so:
http://web.mac.com/USERNAME/genetree.doc
hope that helps!
max -
Help; attachments won't print
hi, help needed please.
the body of my emails will print but not my attachments (words docs etc). tells me that "The format of one or more of the attachments is not supported by ePrint" but they are standard MS files so not sure what the problem is. Using latest version of MS office; is that the problem.......?
Any help much appreciated thanks!Hi,
You mentioned in your post that there were other file types apart from word. The file types that are supported by eprint are listed below. If you have a file type that's not on the list, that could be the issue.
Microsoft Word
Microsoft PowerPoint
Microsoft Excel*
.pdf
.txt
HTML
.jpg
.gif
.png
.tiff
.bmp
"Although I work for HP, I'm speaking for myself and not on behalf of HP"
"Say "Thanks" by clicking the Kudos Star in the post that helped you.
--Please mark the post that solves your problem as "Accepted Solution" -
IAS JServ (servlet) configuration problem
I hava a very simple servlet that calls request.getSession() method. It runs OK from JDeveloper environment, but on iAS I get an Internal Server Error.
error_log shows:
java.lang.NoSuchMethodError: javax.servlet.http.HttpSession javax.servlet.http.HttpServletRequest.getSession()
void org.apache.jserv.JServConnection.run()
void java.lang.Thread.run()
My jserv.properties file has
# Oracle Servlet
wrapper.classpath=c:\oracle\ias\jsp\lib\servlet22.jar
What am I missing?
Thanks a lot...
Glenn
nullHi TechnoSam,
The problem here is, you are not following the correct directory structure.
consider your webapplication is placed in a directory called $TOMCAT_HOME$/webapps/TechnoSamAPP
by default the default context will be $TOMCAT_HOME$/webapps/ROOT
If you want to have your own context, create a directory in webapps like
if you have created a directory Example: TechnoSamAPP
it will become a Web Application Context and which expects a <Context> entry in server.xml file.
You can copy all your files in to this directory by follwoing the directory structure mentioned in the servlet spec SRV.9.5.
You need to place all static resources(*.html, *.jpg, *.gif, *.js, *.css) in this context root directory
i.e.,
/webapps/TechnoSamAPP
� The /webapps/TechnoSamAPP/WEB-INF/web.xml deployment descriptor.
� The /webapps/TechnoSamAPP/WEB-INF/classes/ directory for servlet and utility classes. The classes in this directory must be available to the application class loader.
� The /webapps/TechnoSamAPP/WEB-INF/lib/*.jar area for Java ARchive files. These files contain
servlets, beans, and other utility classes useful to the web application. The web application class loader must be able to load classes from any of these archive files.
The web application classloader must load classes from the WEB-INF/ classes
directory first, and then from library JARs in the WEB-INF/lib directory.
Hence place all your static files (which are accessible for public) into the Context's root directory rather than Tomcat/bin.
Place all servlets in to /WEB_INF/classes which will be accessed by Servlet Container.
Thanks,
Sanath Kumar -
File folders turn into exec files
On a school iMac, I created folders which contained html, jpg, pdf files and other folders. I copied these folders to my thumb drive (the one I use all the time). When I got home, I put this thumb drive into my iMac (Yosemite OS) to finish the folder transfers. When I found the folders I was looking for, they had turned into exec files. What happened?
We need some clarification here. Specifically, you say:
When I found the folders I was looking for, they had turned into exec files.
What turned into "exec" files? The folders, or the files inside them? And when you say they are "exec" files, what exactly are you seeing?
One possibility is that the files you created have all changed to look like this:
If that's the case, then most likely you have somehow created those files without an extension, which means that Mac OS X has no idea what they are. You need to add an extension at the end of the filenames: .html, .jpg, .pdf, etc.
One other possibility, which Tim mentions, is that you have connected this flash drive to a Windows PC that is infected with some kind of malware that has replaced all those files with malicious .exe files. These would not affect your Mac, but would certainly affect the data on the flash drive. Do the filenames end in .exe or .lnk?
If none of that matches what you're seeing, we'll need more details. Screenshots would help. Make a screenshot by following the directions here:
http://support.apple.com/kb/HT5775
Be sure no sensitive personal information is displayed. To add that image to a post here, click the camera icon in the post editor toolbar. -
Can't Flex apps scale to fit browser window?
This has been brought up a couple of times, but seems to be a
mystery: How does one scale all content to fit the browser window,
preserving aspect ratio, and centering the content vertically or
horizontally (depending on whether the window aspect ratio is less
than or greater than the content aspect ratio)?
Since Flash is vector-based, I would have thought this would
be straightforward and encouraged!
Some information in an earlier post, plus experimentation on
my part, has yielded a bizarre and inflexible partial solution -
using StageScaleMode, and sizing the app's base container to
exactly 500x375 pixels, I can get content that scales with
the window size and doesn't have mismatched margins (though I
haven't figured out how to center it yet). In addition, there are
ugly scaling artifacts (look at the drop-shadows as you change the
browser window size).
Again, not being a Flash programmer, I baffled that this
isn't better supported, but I have to admit, most of the Flash apps
I've seen in the wild seem to all be fixed at some ridiculous size
like 640x480 or something. Are there some serious bugs here, or am
I missing something? Is there a better approach?
Here's a simple, complete, example (based on an example from
an earlier thread, but simplified a good bit):
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx='
http://www.adobe.com/2006/mxml'
pageTitle="Resize Test"
layout="absolute" autoLayout="false"
addedToStage="event.currentTarget.stage.scaleMode =
StageScaleMode.SHOW_ALL"
>
<mx:Style>
VBox {
cornerRadius: 4;
borderStyle: solid; border-color: #000000; borderSize: 1;
horizontalAlign: center; verticalAlign: middle;
dropShadowEnabled: true;
</mx:Style>
<mx:VBox width="500" height="375"
backgroundColor="#808080"
paddingTop="20" paddingBottom="20" paddingLeft="20"
paddingRight="20">
<mx:VBox width="100%" height="100%"
backgroundColor="#808000">
<mx:Label text="This is some text" fontSize="12"
width="128" textAlign="center"/>
<mx:Button label="Button"/>
</mx:VBox>
</mx:VBox>
</mx:Application>quote:
Originally posted by:
jpwrunyan
Not bitmaps. Externally loaded images that get converted to
bitmaps. What I said is that 90%+ are online catalogues. Logically
it would be safe to assume they display external images of a set
size. Sorry that was unclear. It would interesting to see an
official survey.
Yeah, I was using "bitmap" to mean raster graphics, whether
the actual source be jpg, png or what have you.
quote:
Originally posted by:
jpwrunyan
And good luck getting anyone from Adobe to pay attention to
this forum let alone comment. Better to contact their support if
you're ever really stuck.
Another reason I'm thinking MS is going to win this war - my
colleague is having great luck in the WPF forums.
quote:
Originally posted by:
jpwrunyan
Another reason I thought of why resizing does not result in
rescaling by default:
HTML and JSP applications don't rescale when you change the
browser size. Just go to hotmail or msn and check. They reposition.
Flex applications are intended to behave the same way but with RIA
capabilities. That is probably the more likely explanation than
bitmaps merely not scaling well. Anyway, this behaviour was a
thought-out decision and I happen to agree with it. By the way,
older Flash applications
do rescale to fit the window by default.
Exactly! That's the big problem, in my view, with the
HTML/JPG based web, and is what a vector-based solution
(discounting raster graphics) should solve.
Firefox, and now IE7, have features to allow you to scale web
pages to overcome, in a stop-gap way, this problem. IE even scales
images and Flash apps, though some Flash suffers problems when
scaled. Firefox does not (yet?) scale images or Flash along with
the other content. Flash-based Elmo games at sesamestree.org, at
640x480, look pretty stupid on my 42" 1920x1080 LCD (played by my
3-year old, not me!), but at least I can now (try) to scale them up
with IE7 for him.
I do not believe this was a thought-out decision, it's just
inertia from the bad old ways of doing things. There should be a
working option to easily scale content to the browser window, and
if Flex doesn't provide one, Microsoft certainly is going to (with
WPF/E) as they have with WPF. I'm not a big MS fan, but I think
they get the way things are going with the proliferation in the
range of screen resolutions and sizes that web content is being
displayed on.
That said, I realize there is more to dealing with different
screen sizes than just scaling - you may have to change the amount
of content on the screen, dependent on what the subject is.
quote:
Originally posted by:
jpwrunyan
Now if you want the Flash Player to be able to import huge
.jpg files with 1000px+ resolution and selectively only load enough
information to make a smaller size bitmap image so you can rescale
with impunity, more power to you. Sounds great. I would love this.
But it still doesn't address what should happen when the image goes
beyond the original size. I know you're only using vector graphics
so it's not an issue for you.
Yep, raster graphics are troublesome. Worst case, a beautiful
picture frame grows to surround the image as one zooms beyond its
original size (insert smiley icon of choice here)
quote:
Originally posted by:
jpwrunyan
Finally to get back on the main topic:
if SWFLoader isn't working well, you could programatically do
the same thing. Have a sub-contaier inside the application
container which adjusts its scale accordingly to the size of the
parent application container. I have done this myself with the
Image class for zooming in and out from images (ironically 1000px+
images which were displayed at much smaller sizes).
<Application resize="adjustSize()"
creationComplete="adjustSize()" paddingLeft="0" paddingRight="0"
paddingTop="0" paddingBottom="0">
<Script>
private function adjustSize():void {
var newScaleX = this.width/content.width
var newScaleY = this.height/content.height
content.scaleX = newScaleX;
content.scaleY = newScaleY;
</Script>
<Box id="content" borderStyle="none" width=400 height=300
/> <!-- the width and height are arbitrary -->
</Application>
Something along the lines of the above should definitely
work. I am just basing it off my own previous code. You may have to
be careful of borders and padding if you decide to add them.
Whether it works better than the other suggestions you'll have to
decide.
Thanks for the code, and I'll try it. I'm new to Flex, and so
I'm still struggling with some things (such as when objects are
available for manipulation). -
Deploying an app...
I am currenly researching ways to deploy a large java application. It has a large directory structure and many resources (.xml, .html, .jpg, etc). All class files are put into a .jar file. An install shield will install the app on Windows machines (mostly NT).
My question is: How do I deploy it without having to ship JDK1.3 (for example) too? Can I just somehow install the JRE with the app? I'm assuming that all hosts will have some type of JVM.
Any comments or suggestions would help greatly.
Thanks in advance!When you say "an install shield" do you mean an install program generated by InstallShield software? The answer to your question is that you need to ensure that an appropriate JRE (not JDK) is installed on your target machine. There are installers (including some made by InstallShield, I believe) that will take care of that for you.
Maybe you are looking for
-
I recently uploaded 10.8, but I have a number of VALUABLE old files which I can no longer read because "power PC applications are no longer supported. How can I retrieve them"?
-
Can i create production order using process material ?
Dear All. Please help me. I want to create production order using process material (material type is PROC). For may knowledge, process order is standard for the process material, but my customer want to use the PP module for the process material. But
-
New motherboard ATV not showing up in itunes
I have a "new" computer in that the motherboard had to be replaced, along with the hard drive... I can't get my Apple TV to show in devices in itunes. In itunes prefs I have "look for apple tvs" checked. The ATV is connected to my wireless network. A
-
Hi. I was working with CS6 when I exported a file to pdf and saved it later this morning. Now I'm trying to open it but I recieve the next message: "Cannot open the file xxxx.indd. Adobe InDesign may not support the file format, a plug-in that suppor
-
Opening .doc and .xls files
AW 6.2.9 Have been able to open most .doc and .xls attachments up till now. Had trouble and now can't (.doc files will open in textEdit). Reloaded AW but all that happens is that when I click on the open button the list of files disappears. I am not