Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

j2me, scale image to fit screen size.

Thread view: 
Boki - 26 Oct 2005 15:52 GMT
Hi All,
         Could you please advice the function call?
or we have to coding byself and then draw it as new picture?

Thank you very much!

Best regards,
Boki.
Roedy Green - 27 Oct 2005 00:38 GMT
>Hi All,
>          Could you please advice the function call?
>or we have to coding byself and then draw it as new picture?

Most of us here are J2SE types. I feel foolish giving you J2SE
solutions to your JME problems.  Perhaps you could prepare a short
essay on that what and what is not available in JME from J2SE.

Perhaps too we need a special JME newsgroup.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Boki - 27 Oct 2005 01:55 GMT
I think that is fine, I can try it if you can provide J2SE solution.

:)

Best regards,
Boki.

"Roedy Green" <my_email_is_posted_on_my_website@munged.invalid>
???????:ko40m1172v7ig3s4g8enn746t6lrfdvcqa@4ax.com...

>>Hi All,
>>          Could you please advice the function call?
[quoted text clipped - 5 lines]
>
> Perhaps too we need a special JME newsgroup.
Darryl L. Pierce - 27 Oct 2005 12:42 GMT
> Most of us here are J2SE types. I feel foolish giving you J2SE
> solutions to your JME problems.  Perhaps you could prepare a short
> essay on that what and what is not available in JME from J2SE.

They wouldn't work anyway on a constrained device, or would be so slow
as to be useless.

> Perhaps too we need a special JME newsgroup.

I've already referred boki in past to the KVM-INTEREST mailing list,
which has as members people from the various expert groups, the
companises who provide the market implementations, etc. While a Usenet
newsgroup would be nice, it would be easier for boki and others to use
the existing active source for information...

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Homepage: http://mcpierce.multiply.com/
"Bury me next to my wife. Nothing too fancy..." - Ulysses S. Grant

Roedy Green - 27 Oct 2005 08:04 GMT
>          Could you please advice the function call?
>or we have to coding byself and then draw it as new picture?

To find out the size of the screen:
See http://mindprod.com/jgloss/coordinates.html

To get images on screen,
http://mindprod.com/jgloss/image.html

Note that Graphics.drawImage all by itself will scale, often when you
did not mean it to.

To do fancy transforms:
http://mindprod.com/jgloss/affinetransform.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Darryl L. Pierce - 27 Oct 2005 12:43 GMT
>>         Could you please advice the function call?
>>or we have to coding byself and then draw it as new picture?
[quoted text clipped - 7 lines]
> Note that Graphics.drawImage all by itself will scale, often when you
> did not mean it to.

The javax.microedition.lcdui.Graphics class does *not* scale images.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Homepage: http://mcpierce.multiply.com/
"Bury me next to my wife. Nothing too fancy..." - Ulysses S. Grant

Darryl L. Pierce - 27 Oct 2005 12:40 GMT
>           Could you please advice the function call?

There are no methods in javax.microedition.lcdui.Image for scaling an
image. The image can only be displayed at the size for which it's encoded.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Homepage: http://mcpierce.multiply.com/
"Bury me next to my wife. Nothing too fancy..." - Ulysses S. Grant

Boki - 27 Oct 2005 13:21 GMT
I got it.. I have to compute it by myslef.

Can we find out the CPU clock of phone ?

I am afriad the phones can't support me enough speed, due to I want as real
time as possible applicatoin.

Best regards,
Boki.

"Darryl L. Pierce" <mcpierce@gmail.com>
???????:L_28f.10715$NJ.2657@bignews7.bellsouth.net...
>>           Could you please advice the function call?
>
> There are no methods in javax.microedition.lcdui.Image for scaling an
> image. The image can only be displayed at the size for which it's encoded.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.