Is this what you're asking? https://stackoverflow.com/questions/66645619/how-to-set-the-simulator-to-use-the-exact-resolution-of-the-phone-skin
On Friday, April 9, 2021 at 9:41:08 AM UTC+3 P5music wrote: > Ok, that's just the original problem, as I wrote in the first message. We > got there. > Indeed the question is very relevant about just that. It's why I asked it. > > Is it somehow possible to have information about the pixel size of the > simulator screen when displayed on the computer screen? > I mean, in real computer-screen pixel size > so to be able to have a real screenshot? > > As I understand the only way is to measure the pixels on the computer > screen. > If I am lucky some devices have less pixels of my computer screen, but I > already know that it is not the case. > > Would be it possible to have a new option on the simulator that > set the size at real pixel size? > It is technically possible because it is just as the user resized manually. > I know that the simulator would become a giant window in some cases, but > it is just necessary for the moment of taking the screenshot. > The only caveat is to make it have the top-left corner in the top-left > corner of the screen so the menu is accessible. > It could be done with just some lines of code, and it would be very useful > for developers that have the BC in the layout, to make official screenshots. > Regards > > Il giorno venerdì 9 aprile 2021 alle 05:16:21 UTC+2 Shai Almog ha scritto: > >> That would be a problem. Native widgets generally act differently on >> devices. That's just the way they work by definition. >> >> On Thursday, April 8, 2021 at 9:19:48 AM UTC+3 P5music wrote: >> >>> @Shai >>> According to what you say it is possible to have real size screeshots. >>> It is good. >>> But there is a problem. I asked about the size of the simulator window >>> because I have to match the real HTML appearance at that size. >>> The BC always displays the same dpi, so I have to create a screenshot >>> that uses >>> the real size >>> and >>> the real dpi for BC. >>> I do not know how to explain better. >>> Regards >>> >>> @Dave >>> I think that, being easy to have screenshots at real screen size, >>> it is better not to scale images so to have the best non-aliased or >>> not-pixelled images. >>> I will use the frames that can be downloaded from Apple developer site, >>> there are ones that correspond to each device, then I will use them to >>> frame my real size screenshots. >>> Regards >>> >>> Il giorno giovedì 8 aprile 2021 alle 00:16:34 UTC+2 [email protected] >>> ha scritto: >>> >>>> Apple doesn't require actual screen shots, as long as they are >>>> reasonably >>>> representative and don't obviously originate from a non-apple device. >>>> So take a real screen shot and photoshop it to the required sizes. >>>> >>>> On Tuesday, April 6, 2021 at 6:47:39 PM UTC-7 Shai Almog wrote: >>>> >>>>> The size is identical. If you use the screenshot feature (without >>>>> skin) you'll get a size that should correspond to the device resolution. >>>>> >>>>> On Tuesday, April 6, 2021 at 10:14:36 PM UTC+3 P5music wrote: >>>>> >>>>>> Being that at present time it would be very difficult for me to use >>>>>> the maven feature, and also I do not read anything about running on iOS >>>>>> simulator on the new maven guides, >>>>>> >>>>>> I am trying to just put the screenshots of my app's user interface >>>>>> inside the apple devices "frames" that I will take screenshots of in the >>>>>> iOS simulator (OSX). >>>>>> We know that the CN IDE simulator has issues with dpi and the CEF >>>>>> BrowserComponent, also I see that the device screen is resizable, it can >>>>>> be >>>>>> even huge or tiny. >>>>>> The CEF BC stays with the same dpi, so just the amount of the >>>>>> displayed HTML changes if I resize the simulator, it is not resized, >>>>>> just >>>>>> its "viewport" changes. >>>>>> >>>>>> I would like to know if it is possible to know which size of the >>>>>> simulator windows (for a certain skin) is what corresponds to the real >>>>>> device screen size (with the given BC "dpi-inside-simulator" that is >>>>>> fixed) >>>>>> so to make screenshots of the real user interface that will fit >>>>>> perfectly inside the apple devices "frame". >>>>>> >>>>>> Thanks in advance >>>>>> >>>>> -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/201957c1-b32a-495a-a83f-4918522c7ce6n%40googlegroups.com.
