[go: up one dir, main page]

CN103729118B - A method and mobile device for realizing image scaling and display - Google Patents

A method and mobile device for realizing image scaling and display Download PDF

Info

Publication number
CN103729118B
CN103729118B CN201210392871.3A CN201210392871A CN103729118B CN 103729118 B CN103729118 B CN 103729118B CN 201210392871 A CN201210392871 A CN 201210392871A CN 103729118 B CN103729118 B CN 103729118B
Authority
CN
China
Prior art keywords
display
max1
display area
max2
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201210392871.3A
Other languages
Chinese (zh)
Other versions
CN103729118A (en
Inventor
张喜涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Samsung Electronics Co Ltd filed Critical Samsung Electronics Co Ltd
Priority to CN201710348342.6A priority Critical patent/CN107193457A/en
Priority to CN201210392871.3A priority patent/CN103729118B/en
Publication of CN103729118A publication Critical patent/CN103729118A/en
Application granted granted Critical
Publication of CN103729118B publication Critical patent/CN103729118B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention provides a method and mobile equipment for realizing image zooming display, wherein the method comprises the following steps: A. detecting the turnover of the mobile equipment, and acquiring an angle alpha of the mobile equipment, which is turned over by taking an X axis as a center, and an angle beta of the mobile equipment, which is turned over by taking a Y axis as a center; B. and reducing or enlarging the image on the touch screen according to the alpha and/or the beta, and displaying the image in the display area, wherein the X axis is a straight line passing through a certain position on the screen, and the Y axis is a straight line perpendicular to the X axis. The invention can realize the zooming display of the screen image of the mobile equipment.

Description

一种实现图像缩放显示的方法和移动设备A method and mobile device for realizing image scaling and display

技术领域technical field

本发明涉及触屏设备技术领域,尤其涉及一种实现图像缩放显示的方法和移动设备。The present invention relates to the technical field of touch screen devices, in particular to a method for realizing image scaling and display and a mobile device.

背景技术Background technique

随着智能移动设备和触摸屏技术的发展,移动设备的屏幕越来越大,但同时可能带来新的问题:当屏幕过大时,需要两只手来操控屏幕,而某些情况下用户只能或只想用一只手来操控。目前尚没有使图像缩放显示以方便用户单手操控屏幕的方法。With the development of smart mobile devices and touch screen technology, the screens of mobile devices are getting larger and larger, but at the same time it may bring new problems: when the screen is too large, two hands are needed to control the screen, and in some cases the user only needs to Can or wants to use one hand to control. There is currently no way to zoom the image to allow the user to manipulate the screen with one hand.

发明内容Contents of the invention

本发明提供了一种实现图像缩放显示的方法,用于将移动设备的屏幕图像缩放显示。The invention provides a method for zooming and displaying an image, which is used for zooming and displaying a screen image of a mobile device.

本发明还提供了一种实现图像缩放显示的移动设备,用于将移动设备的屏幕图像缩放显示。The present invention also provides a mobile device for zooming and displaying an image, which is used for zooming and displaying the screen image of the mobile device.

本发明的技术方案是这样实现的:Technical scheme of the present invention is realized like this:

一种实现图像缩放显示的方法,应用于包括触摸屏和重力加速度传感器的移动设备,包括:A method for zooming and displaying an image, applied to a mobile device including a touch screen and a gravity acceleration sensor, including:

A、检测移动设备的翻转,获取移动设备以X轴为中心翻转的角度α和以Y轴为中心翻转的角度β;A. Detect the flipping of the mobile device, and obtain the flipped angle α of the mobile device centered on the X axis and the flipped angle β centered on the Y axis;

B、根据所述α和/或β缩小或放大触摸屏上的图像,并在显示区域中显示,其中所述X轴为屏幕上通过某一位置的直线,Y轴为与X轴垂直的直线。B. Reduce or enlarge the image on the touch screen according to the α and/or β, and display it in the display area, wherein the X-axis is a straight line passing a certain position on the screen, and the Y-axis is a straight line perpendicular to the X-axis.

一种实现图像缩放显示的移动设备,包括:A mobile device for zooming and displaying images, comprising:

重力加速度传感器,用于检测移动设备的翻转,获取移动设备以X轴为中心翻转的角度α和以Y轴为中心翻转的角度β;其中所述X轴为屏幕上通过某一位置的直线,Y轴为与X轴垂直的直线;The gravity acceleration sensor is used to detect the flipping of the mobile device, and obtain the flipping angle α of the mobile device centered on the X axis and the flipping angle β of the mobile device centered on the Y axis; wherein the X axis is a straight line passing through a certain position on the screen, The Y axis is a straight line perpendicular to the X axis;

显示转化模块,用于根据所述α和/或β缩小或放大触摸屏上的图像,并在显示区域中显示。The display conversion module is used to reduce or enlarge the image on the touch screen according to the α and/or β, and display it in the display area.

可见,本发明提出的实现图像缩放显示的方法和移动设备,通过检测移动设备的翻转角度,将翻转角度作为参数,将屏幕显示根据翻转角度动态映射到一定区域,从而实现将移动设备的屏幕图像缩放显示。It can be seen that the method and mobile device for realizing image zooming and display proposed by the present invention detect the flip angle of the mobile device, use the flip angle as a parameter, and dynamically map the screen display to a certain area according to the flip angle, thereby realizing the screen image of the mobile device Zoom display.

附图说明Description of drawings

图1为本发明提出的实现图像缩放显示的方法流程图;Fig. 1 is the flow chart of the method for realizing image scaling and display proposed by the present invention;

图2为移动设备以X轴为中心翻转的示意图;FIG. 2 is a schematic diagram of the mobile device flipping around the X axis;

图3为像素纵坐标转换示意图;Fig. 3 is a schematic diagram of pixel ordinate conversion;

图4为移动设备以Y轴为中心翻转的示意图;FIG. 4 is a schematic diagram of the mobile device flipping around the Y axis;

图5为像素横坐标转换示意图;Fig. 5 is a schematic diagram of pixel abscissa transformation;

图6为显示效果示意图一;Figure 6 is a schematic diagram of display effect 1;

图7为显示效果示意图二;Figure 7 is a second schematic diagram of the display effect;

图8为本发明提出的实现图像缩放显示的移动设备结构示意图。FIG. 8 is a schematic structural diagram of a mobile device for zooming and displaying images proposed by the present invention.

具体实施方式detailed description

本发明提出一种实现图像缩放显示的方法,应用于包括触摸屏和重力加速度传感器的移动设备,如图1为该方法流程图,包括:The present invention proposes a method for zooming and displaying an image, which is applied to a mobile device including a touch screen and a gravity acceleration sensor. Figure 1 is a flow chart of the method, including:

步骤101:检测移动设备的翻转,获取移动设备以X轴为中心翻转的角度α和以Y轴为中心翻转的角度β;其中所述X轴为屏幕上通过某一位置的直线,Y轴为与X轴垂直的直线。Step 101: Detect the flipping of the mobile device, and obtain the flipping angle α of the mobile device centered on the X axis and the flipping angle β of the mobile device centered on the Y axis; wherein the X axis is a straight line passing through a certain position on the screen, and the Y axis is A line perpendicular to the X axis.

步骤102:根据所述α和/或β缩小或放大触摸屏上的图像,并在显示区域中显示。Step 102: Reduce or enlarge the image on the touch screen according to the α and/or β, and display it in the display area.

如果用户想要操控的移动设备的屏幕位置无法触及,则可以采用长按触摸屏的方式发送缩小或放大显示指令,触摸屏获取该指令的输入位置,将该输入位置设置为原点。或者,用户可以采用按下特定按键的方式发送缩小或放大显示指令,这种情况下可以将预先设置的点设置为原点,考虑到需要靠近用户的手指,那么临近按键的屏幕某个点可以作为原点。将与触摸屏上下边框平行并通过原点的直线设置为X轴,与触摸屏左右边框平行并通过原点的直线设置为Y轴。If the screen position of the mobile device that the user wants to control cannot be touched, the user can send a zoom-out or zoom-in command by long pressing the touch screen, and the touch screen obtains the input position of the command, and sets the input position as the origin. Alternatively, the user can send a zoom-out or zoom-in command by pressing a specific button. In this case, the preset point can be set as the origin. Considering that it needs to be close to the user's finger, a certain point on the screen near the button can be used as the origin. origin. Set the straight line parallel to the upper and lower borders of the touch screen and pass the origin as the X axis, and the straight line parallel to the left and right borders of the touch screen and pass the origin as the Y axis.

另外,可以在设置中增加设置功能,比如全部或者部分开启或关闭功能,比如缩小或放大的功能。当开启缩小功能时,用户长按触摸屏或按下特定按键时发出缩小显示指令;当开启放大功能时,用户长按触摸屏或按下特定按键时发出放大显示指令。In addition, a setting function can be added in the setting, such as fully or partially turning on or off a function, such as a function of zooming out or zooming in. When the zoom-out function is turned on, the user sends a zoom-out instruction when the touch screen is long-pressed or a specific button is pressed; when the zoom-in function is turned on, the user sends a zoom-in display instruction when the user long-presses the touch screen or presses a specific button.

当用户发出缩小显示指令时,移动设备采用本发明提出的方法,可以以用户手指按着的点为中心点,以翻转的角度为参数,将整个屏幕显示映射到这个中心点附近的区域。映射的区域大小以翻转的角度为参数,翻转的角度越大、以翻转角度为参数映射的区域就越小,达到使用户可以触及想要操控的区域的目的。具体地,当缩小图像时,上述步骤102可以为:将图像的长度X转化为X×cosβ;或者,将图像的宽度Y转化为Y×cosα。When the user issues a zoom-out instruction, the mobile device uses the method proposed by the present invention to map the entire screen display to an area near the center point with the point pressed by the user's finger as the center point and the flip angle as a parameter. The size of the mapped area takes the flip angle as a parameter, and the larger the flip angle, the smaller the area mapped with the flip angle as a parameter, so that the user can touch the area he wants to manipulate. Specifically, when shrinking the image, the above step 102 may be: converting the length X of the image into X×cosβ; or converting the width Y of the image into Y×cosα.

为了避免图像显示过小而影响操作,可以设置两组针对翻转角度的最大阈值,记为坐标映射所对应的翻转角度阈值αmax1和βmax1以及显示区域映射所对应的翻转角度阈值αmax2和βmax2,其中αmax2>αmax1,βmax2>βmax1。当移动设备的翻转角度小于αmax1和βmax1时,随着翻转角度的增大,图像越来越小,显示区域也越来越小,显示区域能够同时显示整个图像;当翻转角度达到并超过αmax1和βmax1时,随着翻转角度的增大,图像不再缩小,显示区域仍然越来越小,此时显示区域不能同时显示整个图像,需要在显示区域增加滚动条来达到操控目的;当翻转角度达到并超过αmax2和βmax2时,图像和显示区域均不再缩小。需要说明的是,翻转角度α和β无需同步变化。In order to prevent the image display from being too small and affect the operation, two sets of maximum flip angle thresholds can be set, which are recorded as the flip angle thresholds α max1 and β max1 corresponding to the coordinate map and the flip angle thresholds α max2 and β corresponding to the display area map max2 , where α max2max1 , and β max2max1 . When the flip angle of the mobile device is smaller than α max1 and β max1 , as the flip angle increases, the image becomes smaller and the display area becomes smaller and smaller, and the display area can display the entire image at the same time; when the flip angle reaches and exceeds When α max1 and β max1 , as the flip angle increases, the image no longer shrinks, and the display area is still getting smaller and smaller. At this time, the display area cannot display the entire image at the same time, and a scroll bar needs to be added to the display area to achieve the purpose of manipulation; When the flip angle reaches and exceeds α max2 and β max2 , both the image and the display area will no longer shrink. It should be noted that the flip angles α and β do not need to change synchronously.

具体的,上述步骤102可以包括:Specifically, the above step 102 may include:

当β<βmax1时,将像素的横坐标X0转化为X0×cosβ,将显示区域的横向长度P缩小为P×cosβ,显示转化后的像素;When β<β max1 , convert the abscissa X0 of the pixel into X0×cosβ, reduce the horizontal length P of the display area to P×cosβ, and display the converted pixel;

或者,当α<αmax1时,将像素的纵坐标Y0转化为Y0×cosα,将显示区域的纵向长度Q缩小为Q×cosα,显示转化后的像素;Or, when α<α max1 , the vertical coordinate Y0 of the pixel is converted into Y0×cosα, the vertical length Q of the display area is reduced to Q×cosα, and the converted pixel is displayed;

或者,当βmax1≤β<βmax2时,将像素的横坐标X0转化为X0×cos βmax1,将显示区域的横向长度P缩小为P×cosβ,在显示区域设置横向滚动条,显示转化后的像素;Or, when β max1 ≤ β< β max2 , convert the abscissa X0 of the pixel into X0×cos β max1 , reduce the horizontal length P of the display area to P×cosβ, set a horizontal scroll bar in the display area, and display the converted of pixels;

或者,当αmax1≤α<αmax2时,将像素的纵坐标Y0转化为Y0×cosαmax1,将显示区域的纵向长度Q缩小为Q×cosα,在显示区域设置纵向滚动条,显示转化后的像素;Or, when α max1 ≤ α<α max2 , convert the vertical coordinate Y0 of the pixel into Y0×cosα max1 , reduce the vertical length Q of the display area to Q×cosα, set a vertical scroll bar in the display area, and display the converted pixel;

或者,当β≥βmax2时,将像素的横坐标X0转化为X0×cos βmax1,将显示区域的横向长度P缩小为P×cosβmax2,在显示区域设置横向滚动条,显示转化后的像素;Or, when β≥β max2 , convert the abscissa X0 of the pixel to X0×cos β max1 , reduce the horizontal length P of the display area to P×cosβ max2 , set a horizontal scroll bar in the display area, and display the transformed pixels ;

或者,当α≥αmax2时,将像素的纵坐标Y0转化为Y0×cos αmax1,将显示区域的纵向长度Q缩小为Q×cos αmax2,在显示区域设置纵向滚动条,显示转化后的像素。Or, when α≥α max2 , the vertical coordinate Y0 of the pixel is transformed into Y0×cos α max1 , the vertical length Q of the display area is reduced to Q×cos α max2 , and a vertical scroll bar is set in the display area to display the transformed pixels.

以下参照附图,举具体的实施例对本发明做详细介绍。Referring to the accompanying drawings, the present invention will be described in detail with reference to specific embodiments.

在本实施例中,移动设备以X轴为中心朝着用户方向翻转α,同时以Y轴为中心朝着用户翻转β;为便于显示,图示将以X轴和Y轴为中心的翻转的动作分解开来进行描述。In this embodiment, the mobile device flips α around the X axis toward the user, and at the same time flips β around the Y axis toward the user; Actions are broken down for description.

图2为移动设备以X轴为中心翻转的示意图,其中左侧表示移动设备的初始位置,右侧虚线表示移动设备的初始位置、实线表示移动设备以X轴为中心翻转α后的位置。则像素的坐标需要进行转换,记翻转前像素的坐标为(X0,Y0),则转换后为(X0,Y0×cosα)。2 is a schematic diagram of a mobile device flipping around the X-axis, where the left side represents the initial position of the mobile device, the dotted line on the right side represents the initial position of the mobile device, and the solid line represents the position of the mobile device after flipping α around the X-axis. Then the coordinates of the pixels need to be converted. Note that the coordinates of the pixels before flipping are (X0, Y0), and then they are (X0, Y0×cosα) after conversion.

如图3为像素纵坐标转换示意图。当移动设备以X轴为中心翻转α后,移动设备Y轴新的位置与原位置夹角为α,则将像素的纵坐标Y0转换为Y0×cosα。从上往下垂直看,类似每个像素在原有位置的投影。Figure 3 is a schematic diagram of pixel ordinate transformation. After the mobile device flips α around the X axis, the angle between the new position of the Y axis of the mobile device and the original position is α, and the vertical coordinate Y0 of the pixel is converted to Y0×cosα. Viewed vertically from top to bottom, it is similar to the projection of each pixel at its original position.

图4为移动设备以Y轴为中心翻转的示意图,其中左侧表示移动设备的初始位置,右侧虚线表示移动设备的初始位置、实线表示移动设备以Y轴为中心翻转β后的位置。则像素的坐标需要进行转换,记翻转前像素的坐标为(X0,Y0),则转换后为(X0×cosβ,Y0)。4 is a schematic diagram of a mobile device flipping around the Y axis, where the left side represents the initial position of the mobile device, the dotted line on the right side represents the initial position of the mobile device, and the solid line represents the position of the mobile device after flipping β around the Y axis. Then the coordinates of the pixels need to be converted. Note that the coordinates of the pixels before flipping are (X0, Y0), and then they are (X0×cosβ, Y0) after conversion.

如图5为像素横坐标转换示意图。当移动设备以Y轴为中心翻转β后,移动设备X轴新的位置与原位置夹角为β,则将像素的横坐标X0转换为X0×cosβ。从上往下垂直看,类似每个像素在原有位置的投影。Figure 5 is a schematic diagram of pixel abscissa transformation. After the mobile device flips β around the Y axis, the angle between the new position of the X axis of the mobile device and the original position is β, and the abscissa X0 of the pixel is transformed into X0×cosβ. Viewed vertically from top to bottom, it is similar to the projection of each pixel at its original position.

上述实施例中,为了描述方便,将移动设备以X轴和Y轴为中心的翻转分解开,并且是以移动设备的中心作为翻转中心的。在实际应用中,两个方向的翻转是同时进行的,并以用户手指所按位置为中心进行翻转。In the above embodiments, for the convenience of description, the turning of the mobile device centered on the X axis and the Y axis is decomposed, and the center of the mobile device is used as the turning center. In practical applications, flipping in two directions is performed simultaneously, and the flipping is performed centering on the position pressed by the user's finger.

图6为显示效果示意图一。图中星型是手指所按的位置,此点作为原点。左侧为屏幕的原始显示图像,右侧为翻转后的显示图像。随着翻转角度的增大,图像和显示区域同步缩小。由于翻转后显示区域变小,可以满足单手操作的需要。Fig. 6 is a schematic diagram showing the first effect. The star in the figure is the position where the finger is pressed, and this point is used as the origin. The original display image of the screen is on the left, and the flipped display image is on the right. As the flip angle increases, the image and display area shrink synchronously. Since the display area becomes smaller after flipping, it can meet the needs of one-handed operation.

图7为显示效果示意图二。翻转角度继续增大,达到坐标映射所对应的翻转角度阈值后,随着翻转角度的增大,显示区域继续缩小,但图像不再变化,此时显示区域无法同时显示所有图像,虚线所示是没有显示的部分,增加滚动条来达到操控全部屏幕的目的。Figure 7 is a second schematic diagram of the display effect. The flip angle continues to increase until the flip angle threshold corresponding to the coordinate mapping is reached. As the flip angle increases, the display area continues to shrink, but the image does not change. At this time, the display area cannot display all images at the same time. The dotted line shows For parts that are not displayed, scroll bars are added to achieve the purpose of controlling the entire screen.

翻转角度继续增大,达到显示区域映射所对应的翻转角度阈值后,图像和显示区域均不再缩小。The flip angle continues to increase, and when the flip angle threshold corresponding to the display area mapping is reached, neither the image nor the display area shrinks anymore.

当放大图像显示时,上述步骤102可以包括:将图像的长度X转化为X/cosβ;或者,将图像的宽度Y转化为Y/cos α。。When the enlarged image is displayed, the above step 102 may include: converting the length X of the image into X/cos β; or converting the width Y of the image into Y/cos α. .

此外,当图像缩小或放大显示后,为保证用户对缩小或放大后图像的触摸屏操作正确映射到原有屏幕,可以在触摸屏的中间层进行触屏事件的坐标映射,具体方法描述如下:将显示区域外的触屏事件忽略,对于显示区域以内的触屏事件,动作类型不变,坐标做显示的逆处理,从而映射到原来的整个屏幕,将映射过的数据传递给上层应用,这样就等于将用户在显示区域的操作完整地映射到整个屏幕。而上层应用就可以透明的处理触屏事件。此种方法的通用性比较好,而且应用层不需要特殊处理,可以不做任何修改。In addition, when the image is shrunk or enlarged, in order to ensure that the user's touch screen operation on the shrunk or enlarged image is correctly mapped to the original screen, the coordinate mapping of the touch screen event can be performed on the middle layer of the touch screen. The specific method is described as follows: the display Touch screen events outside the area are ignored. For touch screen events within the display area, the action type remains unchanged, and the coordinates are displayed inversely, so that they are mapped to the original entire screen, and the mapped data is passed to the upper application, which is equivalent to Completely map the user's operations in the display area to the entire screen. The upper application can transparently handle touch screen events. This method has better versatility, and the application layer does not need special processing, and no modification is required.

本发明还提出一种实现图像缩放显示的移动设备,如图8为该移动设备的结构示意图,包括:The present invention also proposes a mobile device for zooming and displaying images, as shown in Figure 8, which is a schematic structural diagram of the mobile device, including:

重力加速度传感器801,用于检测移动设备的翻转,获取移动设备以X轴为中心翻转的角度α和以Y轴为中心翻转的角度β;其中所述X轴为屏幕上通过某一位置的直线,Y轴为与X轴垂直的直线;The gravity acceleration sensor 801 is used to detect the turning of the mobile device, and obtain the turning angle α of the mobile device centered on the X axis and the turning angle β centered on the Y axis; wherein the X axis is a straight line passing through a certain position on the screen , the Y axis is a straight line perpendicular to the X axis;

显示转化模块802,用于根据所述α和/或β缩小或放大触摸屏上的图像,并在显示区域中显示。The display conversion module 802 is configured to reduce or enlarge the image on the touch screen according to the α and/or β, and display it in the display area.

上述移动设备中,当缩小图像时,显示转化模块802将图像的长度X转化为X×cosβ;或者,将图像的宽度Y转化为Y×cosα。In the above mobile device, when the image is reduced, the display conversion module 802 converts the length X of the image into X×cosβ; or converts the width Y of the image into Y×cosα.

上述移动设备中,当缩小图像时,显示转化模块802还设置坐标映射所对应的翻转角度阈值αmax1和βmax1,设置显示区域映射所对应的翻转角度阈值αmax2和βmax2,其中αmax2>αmax1,βmax2>βmax1In the above-mentioned mobile device, when the image is reduced, the display conversion module 802 also sets the flip angle thresholds α max1 and β max1 corresponding to the coordinate map, and sets the flip angle thresholds α max2 and β max2 corresponding to the display area map, where α max2 > α max1 , β max2 > β max1 ;

当β<βmax1时,将像素的横坐标X0转化为X0×cosβ,将显示区域的横向长度P缩小为P×cosβ,显示转化后的像素;When β<β max1 , convert the abscissa X0 of the pixel into X0×cosβ, reduce the horizontal length P of the display area to P×cosβ, and display the converted pixel;

或者,当α<αmax1时,将像素的纵坐标Y0转化为Y0×cosα,将显示区域的纵向长度Q缩小为Q×cosα,显示转化后的像素;Or, when α<α max1 , the vertical coordinate Y0 of the pixel is converted into Y0×cosα, the vertical length Q of the display area is reduced to Q×cosα, and the converted pixel is displayed;

或者,当βmax1≤β<βmax2时,将像素的横坐标X0转化为X0×cosβmax1,将显示区域的横向长度P缩小为P×cosβ,在显示区域设置横向滚动条,显示转化后的像素;Or, when β max1 ≤ β< β max2 , convert the abscissa X0 of the pixel into X0×cosβ max1 , reduce the horizontal length P of the display area to P×cosβ, set a horizontal scroll bar in the display area, and display the converted pixel;

或者,当αmax1≤α<αmax2时,将像素的纵坐标Y0转化为Y0×cosαmax1,将显示区域的纵向长度Q缩小为Q×cosα,在显示区域设置纵向滚动条,显示转化后的像素;Or, when α max1 ≤ α<α max2 , convert the vertical coordinate Y0 of the pixel into Y0×cosα max1 , reduce the vertical length Q of the display area to Q×cosα, set a vertical scroll bar in the display area, and display the converted pixel;

或者,当β≥βmax2时,将像素的横坐标X0转化为X0×cosβmax1,将显示区域的横向长度P缩小为P×cosβmax2,在显示区域设置横向滚动条,显示转化后的像素;Or, when β≥β max2 , convert the abscissa X0 of the pixel to X0×cosβ max1, reduce the horizontal length P of the display area to P×cosβ max2 , set a horizontal scroll bar in the display area, and display the transformed pixels;

或者,当α≥αmax2时,将像素的纵坐标Y0转化为Y0×cosαmax1,将显示区域的纵向长度Q缩小为Q×cos αmax2,在显示区域设置纵向滚动条,显示转化后的像素。Or, when α≥α max2 , convert the vertical coordinate Y0 of the pixel to Y0×cosα max1 , reduce the vertical length Q of the display area to Q×cos α max2 , set a vertical scroll bar in the display area, and display the transformed pixels .

上述移动设备中,当放大图像时,所述显示转化模块802将图像的长度X转化为X/cosβ;或者,将图像的宽度Y转化为Y/cosα。In the above mobile device, when the image is enlarged, the display conversion module 802 converts the length X of the image into X/cosβ; or converts the width Y of the image into Y/cosα.

上述移动设备还包括触摸屏803,用于接收缩小或放大显示指令,将所述缩小或放大显示指令的输入位置或者预先设置的位置设置为原点,将与触摸屏上下边框平行并通过所述原点的直线设置为X轴,将与触摸屏左右边框平行并通过所述原点的直线设置为Y轴。The above-mentioned mobile device also includes a touch screen 803, which is used to receive a zoom-out or zoom-in display command, set the input position of the zoom-out or zoom-in display command or a preset position as the origin, and set a straight line parallel to the upper and lower borders of the touch screen and passing through the origin Set it as the X axis, and set the straight line parallel to the left and right borders of the touch screen and passing through the origin as the Y axis.

综上所述,本发明提出的实现图像缩放显示的方法和移动设备,利用重力加速度传感器检测移动设备的翻转角度,将翻转角度作为参数,将屏幕显示根据翻转角度动态映射到一定区域,从而实现将移动设备的屏幕图像缩小或放大显示。缩小显示后,就可以满足用户单手操作的需要。本发明还定义了两组翻转角度阈值,避免图像过小而影响操作。To sum up, the method and mobile device for zooming and displaying images proposed by the present invention use a gravity acceleration sensor to detect the flip angle of the mobile device, use the flip angle as a parameter, and dynamically map the screen display to a certain area according to the flip angle, thereby realizing Reduce or enlarge the screen image of the mobile device. After the zoomed-in display, the needs of the user for one-handed operation can be met. The present invention also defines two sets of flip angle thresholds to prevent the image from being too small and affecting the operation.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.

Claims (6)

1.一种实现图像缩放显示的方法,其特征在于,所述方法包括:1. A method for realizing image scaling display, characterized in that, the method comprises: 设置坐标映射所对应的翻转角度阈值αmax1和βmax1,设置显示区域映射所对应的翻转角度阈值αmax2和βmax2,其中αmax2>αmax1,βmax2>βmax1Set the flip angle thresholds α max1 and β max1 corresponding to the coordinate mapping, set the flip angle thresholds α max2 and β max2 corresponding to the display area map, where α max2 > α max1 , β max2 > β max1 ; A、检测移动设备的翻转,获取移动设备以X轴为中心翻转的角度α和以Y轴为中心翻转的角度β;A. Detect the flipping of the mobile device, and obtain the flipped angle α of the mobile device centered on the X axis and the flipped angle β centered on the Y axis; B、根据所述α和/或β缩小或放大触摸屏上的图像,并在显示区域中显示,其中所述X轴为屏幕上通过某一位置的直线,Y轴为与X轴垂直的直线;B. Reduce or enlarge the image on the touch screen according to the α and/or β, and display it in the display area, wherein the X-axis is a straight line passing through a certain position on the screen, and the Y-axis is a straight line perpendicular to the X-axis; 当缩小图像时,所述步骤B具体为:When reducing the image, the step B is specifically: 当β<βmax1时,将像素的横坐标X0转化为X0×cosβ,将显示区域的横向长度P缩小为P×cosβ,显示转化后的像素;When β<β max1 , convert the abscissa X0 of the pixel into X0×cosβ, reduce the horizontal length P of the display area to P×cosβ, and display the converted pixel; 或者,当α<αmax1时,将像素的纵坐标Y0转化为Y0×cosα,将显示区域的纵向长度Q缩小为Q×cosα,显示转化后的像素;Or, when α<α max1 , the vertical coordinate Y0 of the pixel is converted into Y0×cosα, the vertical length Q of the display area is reduced to Q×cosα, and the converted pixel is displayed; 或者,当βmax1≤β<βmax2时,将像素的横坐标X0转化为X0×cosβmax1,将显示区域的横向长度P缩小为P×cosβ,在显示区域设置横向滚动条,显示转化后的像素;Or, when β max1 ≤ β< β max2 , convert the abscissa X0 of the pixel into X0×cosβ max1 , reduce the horizontal length P of the display area to P×cosβ, set a horizontal scroll bar in the display area, and display the converted pixel; 或者,当αmax1≤α<αmax2时,将像素的纵坐标Y0转化为Y0×cosαmax1,将显示区域的纵向长度Q缩小为Q×cosα,在显示区域设置纵向滚动条,显示转化后的像素;Or, when α max1 ≤ α<α max2 , convert the vertical coordinate Y0 of the pixel into Y0×cosα max1 , reduce the vertical length Q of the display area to Q×cosα, set a vertical scroll bar in the display area, and display the converted pixel; 或者,当β≥βmax2时,将像素的横坐标X0转化为X0×cosβmax1,将显示区域的横向长度P缩小为P×cosβmax2,在显示区域设置横向滚动条,显示转化后的像素;Or, when β≥β max2 , convert the abscissa X0 of the pixel to X0×cosβ max1, reduce the horizontal length P of the display area to P×cosβ max2 , set a horizontal scroll bar in the display area, and display the transformed pixels; 或者,当α≥αmax2时,将像素的纵坐标Y0转化为Y0×cosαmax1,将显示区域的纵向长度Q缩小为Q×cosαmax2,在显示区域设置纵向滚动条,显示转化后的像素。Or, when α≥α max2 , the vertical coordinate Y0 of the pixel is converted to Y0×cosα max1 , the vertical length Q of the display area is reduced to Q×cosα max2 , and a vertical scroll bar is set in the display area to display the transformed pixels. 2.根据权利要求1所述的方法,其特征在于,当放大图像时,所述步骤B具体为:2. The method according to claim 1, wherein when the image is enlarged, the step B is specifically: 将图像的长度X转化为X/cosβ;Convert the length X of the image to X/cosβ; 或者,将图像的宽度Y转化为Y/cosα。Alternatively, convert the image's width Y to Y/cos α. 3.根据权利要求1或2所述的方法,其特征在于,所述X轴为与触摸屏上下边框平行并通过原点的直线,所述Y轴为与触摸屏左右边框平行并通过原点的直线;其中,所述原点为触摸屏上缩小或放大显示指令的输入位置或者预先设置的位置。3. The method according to claim 1 or 2, wherein the X-axis is a straight line parallel to the upper and lower borders of the touch screen and passing through the origin, and the Y-axis is a straight line parallel to the left and right borders of the touch screen and passing through the origin; wherein , the origin is an input position or a preset position of a zoom-out or zoom-in display command on the touch screen. 4.一种实现图像缩放显示的移动设备,其特征在于,所述移动设备包括:4. A mobile device for zooming and displaying images, characterized in that the mobile device comprises: 重力加速度传感器,用于检测移动设备的翻转,获取移动设备以X轴为中心翻转的角度α和以Y轴为中心翻转的角度β;其中所述X轴为屏幕上通过某一位置的直线,Y轴为与X轴垂直的直线;The gravity acceleration sensor is used to detect the flipping of the mobile device, and obtain the flipping angle α of the mobile device centered on the X axis and the flipping angle β of the mobile device centered on the Y axis; wherein the X axis is a straight line passing through a certain position on the screen, The Y axis is a straight line perpendicular to the X axis; 显示转化模块,用于根据所述α和/或β缩小或放大触摸屏上的图像,并在显示区域中显示;A display conversion module, configured to reduce or enlarge the image on the touch screen according to the α and/or β, and display it in the display area; 当缩小图像时,所述显示转化模块还设置坐标映射所对应的翻转角度阈值αmax1和βmax1,设置显示区域映射所对应的翻转角度阈值αmax2和βmax2,其中αmax2>αmax1,βmax2>βmax1When the image is reduced, the display conversion module also sets the flip angle thresholds α max1 and β max1 corresponding to the coordinate mapping, and sets the flip angle thresholds α max2 and β max2 corresponding to the display area map, where α max2 > α max1 , β max2 > β max1 ; 当β<βmax1时,将像素的横坐标X0转化为X0×cosβ,将显示区域的横向长度P缩小为P×cosβ,显示转化后的像素;When β<β max1 , convert the abscissa X0 of the pixel into X0×cosβ, reduce the horizontal length P of the display area to P×cosβ, and display the converted pixel; 或者,当α<αmax1时,将像素的纵坐标Y0转化为Y0×cosα,将显示区域的纵向长度Q缩小为Q×cosα,显示转化后的像素;Or, when α<α max1 , the vertical coordinate Y0 of the pixel is converted into Y0×cosα, the vertical length Q of the display area is reduced to Q×cosα, and the converted pixel is displayed; 或者,当βmax1≤β<βmax2时,将像素的横坐标X0转化为X0×cosβmax1,将显示区域的横向长度P缩小为P×cosβ,在显示区域设置横向滚动条,显示转化后的像素;Or, when β max1 ≤ β< β max2 , convert the abscissa X0 of the pixel into X0×cosβ max1 , reduce the horizontal length P of the display area to P×cosβ, set a horizontal scroll bar in the display area, and display the converted pixel; 或者,当αmax1≤α<αmax2时,将像素的纵坐标Y0转化为Y0×cosαmax1,将显示区域的纵向长度Q缩小为Q×cosα,在显示区域设置纵向滚动条,显示转化后的像素;Or, when α max1 ≤ α<α max2 , convert the vertical coordinate Y0 of the pixel into Y0×cosα max1 , reduce the vertical length Q of the display area to Q×cosα, set a vertical scroll bar in the display area, and display the converted pixel; 或者,当β≥βmax2时,将像素的横坐标X0转化为X0×cosβmax1,将显示区域的横向长度P缩小为P×cosβmax2,在显示区域设置横向滚动条,显示转化后的像素;Or, when β≥β max2 , convert the abscissa X0 of the pixel to X0×cosβ max1, reduce the horizontal length P of the display area to P×cosβ max2 , set a horizontal scroll bar in the display area, and display the transformed pixels; 或者,当α≥αmax2时,将像素的纵坐标Y0转化为Y0×cosαmax1,将显示区域的纵向长度Q缩小为Q×cosαmax2,在显示区域设置纵向滚动条,显示转化后的像素。Or, when α≥α max2 , the vertical coordinate Y0 of the pixel is converted to Y0×cosα max1 , the vertical length Q of the display area is reduced to Q×cosα max2 , and a vertical scroll bar is set in the display area to display the transformed pixels. 5.根据权利要求4所述的移动设备,其特征在于,当放大图像时,所述显示转化模块将图像的长度X转化为X/cosβ;或者,将图像的宽度Y转化为Y/cosα。5. The mobile device according to claim 4, wherein when the image is enlarged, the display conversion module converts the length X of the image into X/cosβ; or converts the width Y of the image into Y/cosα. 6.根据权利要求4或5所述的移动设备,其特征在于,所述移动设备还包括触摸屏,用于接收缩小或放大显示指令,将所述缩小或放大显示指令的输入位置或者预先设置的位置设置为原点,将与触摸屏上下边框平行并通过所述原点的直线设置为X轴,将与触摸屏左右边框平行并通过所述原点的直线设置为Y轴。6. The mobile device according to claim 4 or 5, characterized in that the mobile device further comprises a touch screen, configured to receive a zoom-in or zoom-in display instruction, and set the input position of the zoom-in or zoom-in display instruction or a preset The position is set as the origin, the straight line parallel to the upper and lower borders of the touch screen and passing through the origin is set as the X axis, and the straight line parallel to the left and right borders of the touch screen and passing through the origin is set as the Y axis.
CN201210392871.3A 2012-10-16 2012-10-16 A method and mobile device for realizing image scaling and display Expired - Fee Related CN103729118B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710348342.6A CN107193457A (en) 2012-10-16 2012-10-16 A method and mobile device for realizing image scaling and display
CN201210392871.3A CN103729118B (en) 2012-10-16 2012-10-16 A method and mobile device for realizing image scaling and display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210392871.3A CN103729118B (en) 2012-10-16 2012-10-16 A method and mobile device for realizing image scaling and display

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201710348342.6A Division CN107193457A (en) 2012-10-16 2012-10-16 A method and mobile device for realizing image scaling and display

Publications (2)

Publication Number Publication Date
CN103729118A CN103729118A (en) 2014-04-16
CN103729118B true CN103729118B (en) 2017-06-13

Family

ID=50453216

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710348342.6A Pending CN107193457A (en) 2012-10-16 2012-10-16 A method and mobile device for realizing image scaling and display
CN201210392871.3A Expired - Fee Related CN103729118B (en) 2012-10-16 2012-10-16 A method and mobile device for realizing image scaling and display

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201710348342.6A Pending CN107193457A (en) 2012-10-16 2012-10-16 A method and mobile device for realizing image scaling and display

Country Status (1)

Country Link
CN (2) CN107193457A (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244045B (en) 2014-09-28 2016-02-24 小米科技有限责任公司 The method that control video pictures presents and device
CN104394452A (en) * 2014-12-05 2015-03-04 宁波菊风系统软件有限公司 Immersive video presenting method for intelligent mobile terminal
CN105260103B (en) * 2015-10-08 2017-09-29 广东欧珀移动通信有限公司 A kind of picture Zoom method and electronic equipment
CN106814886A (en) * 2015-11-30 2017-06-09 阿里巴巴集团控股有限公司 The methods of exhibiting and device of banner banner pictures
CN106385578B (en) * 2016-09-30 2017-12-08 京东方科技集团股份有限公司 A kind of display methods
CN107562335B (en) * 2017-07-31 2020-04-17 维沃移动通信有限公司 Display area adjusting method and mobile terminal
CN109062478A (en) * 2018-06-28 2018-12-21 努比亚技术有限公司 Read display control method, mobile terminal and computer readable storage medium
CN109144654B (en) * 2018-08-31 2021-02-05 创新先进技术有限公司 Interface switching method and device
CN110134471B (en) * 2019-04-01 2022-09-06 徐州视达坦诚文化发展有限公司 Screen switching animation control method, terminal and computer readable storage medium
CN112967488B (en) * 2021-04-09 2022-05-06 宁波奥克斯电气股份有限公司 An air conditioner display control method and device, and an air conditioner

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100058254A1 (en) * 2008-08-29 2010-03-04 Tomoya Narita Information Processing Apparatus and Information Processing Method
KR20100136289A (en) * 2009-06-18 2010-12-28 엘지전자 주식회사 Display Control Method of Mobile Terminal
CN102339200A (en) * 2010-07-23 2012-02-01 联想(北京)有限公司 Display method and portable electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8089457B2 (en) * 2006-05-19 2012-01-03 Panasonic Corporation Image operating device, image operating method, and image operating program embodied on computer readable medium
CN101175278A (en) * 2007-11-12 2008-05-07 陈拙夫 Mobile phone with virtual screen display function, display and operation method thereof
KR101567785B1 (en) * 2009-05-28 2015-11-11 삼성전자주식회사 Method and Apparatus for Controlling Zoom Function in Portable Terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100058254A1 (en) * 2008-08-29 2010-03-04 Tomoya Narita Information Processing Apparatus and Information Processing Method
KR20100136289A (en) * 2009-06-18 2010-12-28 엘지전자 주식회사 Display Control Method of Mobile Terminal
CN102339200A (en) * 2010-07-23 2012-02-01 联想(北京)有限公司 Display method and portable electronic equipment

Also Published As

Publication number Publication date
CN103729118A (en) 2014-04-16
CN107193457A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
CN103729118B (en) A method and mobile device for realizing image scaling and display
US9337926B2 (en) Apparatus and method for providing dynamic fiducial markers for devices
US10628010B2 (en) Quick review of captured image data
EP3839697B1 (en) Flexible display apparatus and operating method thereof
JP5915000B2 (en) Information processing apparatus and program
CN103577140B (en) The display terminal device and method of exterior display device can be connected
US20170083218A1 (en) Gesture mapping for image filter input parameters
CN110574000B (en) display device
CN110427151A (en) Method and electronic device for controlling user interface
CN105807999B (en) Method for inputting handwritten information to a display device through a handwriting device
CN103677569B (en) Method for processing user interface of electronic equipment and electronic equipment
CN104517586A (en) Display apparatus, source device and display system
CN104598123A (en) Method and device for displaying screen display picture of mobile terminal
CN107589836A (en) A kind of on-screen display (osd) area method of adjustment and mobile terminal
WO2017059734A1 (en) Image zoom in/out method and electronic device
CN103699331A (en) Gesture method for controlling screen zooming
CN110795021A (en) Information display method, device and electronic device
US20200296291A1 (en) User terminal apparatus and control method thereof
TWI686742B (en) Control method, electronic device and non-transitory computer readable storage medium device
CN103513926A (en) Dynamic wallpaper display method and new video information display method and handheld mobile system
US20160035062A1 (en) Electronic apparatus and method
CN105786314A (en) Window adjusting method and electronic device using same
CN112764626A (en) Touch response method and device and electronic equipment
CN102799345A (en) Method and electronic device for enlarging image on touch screen
TWM472879U (en) Synchronous display and control for handheld device display system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170613

Termination date: 20211016