CN108628523A - 一种处理窗体滚动容器的截屏方法 - Google Patents
一种处理窗体滚动容器的截屏方法 Download PDFInfo
- Publication number
- CN108628523A CN108628523A CN201710151786.0A CN201710151786A CN108628523A CN 108628523 A CN108628523 A CN 108628523A CN 201710151786 A CN201710151786 A CN 201710151786A CN 108628523 A CN108628523 A CN 108628523A
- Authority
- CN
- China
- Prior art keywords
- container
- screenshotss
- forms
- scroll bar
- roll
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/0485—Scrolling or panning
- G06F3/04855—Interaction with scrollbars
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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
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)
- Details Of Rigid Or Semi-Rigid Containers (AREA)
Abstract
本发明提供了一种处理窗体滚动容器的截屏方法。该截屏方法包括:区别以往截屏方式的不同在于本方式可以将有滚动条容器内的内容全部截取,并且整体输出并保存。该方式解决了静态截屏不能将容器内内容全部截取的缺陷,可以满足动态截屏的需要。
Description
技术领域
本发明属于计算机图像处理领域,特别涉及一种处理窗体滚动容器的截屏方法。
背景技术
目前,计算机屏幕截图方式分为以下几种。第一种是静态截图,静态展示。该种截图技术主要用以截取屏幕上直观的、可见的内容,并将其以指定的方式静态地展示。第二种是动态截图,动态展示。该种截图技术主要用于拍摄屏幕内容,实现屏幕录制,并将其以录像的形式动态地展示。而在某些情况下,如带有滚动条的容器中,一部分内容直接展示在容器内,而另外一部分内容的位置超出了容器的范围。
此时用以上两种截图方式均满足不了需求。这种情况不利于滚动容器内容的完全展示,在一些特殊报告、文档输出或打印时将会丢失数据。
发明内容
为了解决以上问题,本发明提供了一种处理窗体滚动容器的截屏方法,即动态截屏、静态展示的方式。这从技术层面可以方便快捷地截取滚动容器中的数据并将其整体展示出来。
本发明在处理这种问题时采用了如下技术方案:
a) 定位窗体容器控件,分析窗体滚动容器,对窗体滚动容器做特征分析,并将特征值提取到配置文件中;
b) 加载钩子,钩取需求相关的模块。然后根据配置文件中的相关特征参数定位所需要截屏的滚动容器;
c) 在定位滚动容器的基础上,根据配置文件的相关参数进行动态截屏操作;
d) 将所截屏幕图片拼接完成截屏操作,实现静态展示。
进一步地,步骤 a) 中所述分析窗体滚动容器:在于该容器分为没有滚动条,只有水平滚动条,只有垂直滚动条,具有水平和垂直滚动条四种情况,以上所述四种情况分析后找到其特征属性,并配置到配置文件中。
进一步地,步骤 b) 中所述加载钩子:在于该过程是windows的钩子技术,解决滚动定位、截屏和拼接的问题。
进一步地,步骤 c) 中所述动态截屏,是根据配置的特征属性,按照相关的算法和方式对窗体处理容器进行动态截屏操作。
进一步地,步骤 d) 中所述静态展示:将滚动截屏的内容,按照相关的算法和方式进行处理,并将其完整地展示出来。
本发明的有益效果在于:
本发明截屏的窗体容器不管有无滚动条,都可以将该窗体容器内的内容截取。解决了窗体滚动容器截屏不全,不直观的缺陷,可方便为特殊文档的输出和打印提供服务。
附图说明
图1:本发明流程示意图。
图2:窗体滚动容器截屏方案实施例示意图。
具体实施方式
下面结合附图详细说明本发明的流程。通过对电子医疗报告的实例处理,验证了本发明的实用性。这对处理滚动容器截屏增加了一种新的方式。
在做好窗体容器特性分析及基础上,将其特征属性配置到配置文件中。通过钩子钩取相关事件。通过特征属性值定位所需要的窗体滚动容器。分别对四种情况进行处理。如果没有滚动条,则直接截屏;如果只有横向滚动条,则按横向滚动条的滚动方向进行截屏;如果只有纵向滚动条,则按纵向滚动条的滚动方向进行截屏;如果横向滚动条和纵向滚动条同时存在,则按相关算法进行滚动截屏。
截屏完成后,实现图片的匹配和拼接。其具体方式是在有序的图片基础上,根据不同截屏方式,通过相应的算法完成对所截图片的处理及拼接,然后对拼接的图片输出。
更为灵活的是,本发明可根据不同实例,按照其特有属性配置成配置文件,然后针对所需要的滚动容器窗体进行自动化的截屏处理。
Claims (5)
1.一种处理窗体滚动容器的截屏方法,其使用特征在于包括如下步骤:
a) 定位窗体容器控件,分析窗体滚动容器,对窗体滚动容器做特征分析,并将特征值提取到配置文件中;
b) 加载钩子,钩取需求相关的模块,然后根据配置文件中的相关特征参数定位所需要截屏的滚动容器;
c) 在定位滚动容器的基础上,根据配置文件的相关参数进行动态截屏操作;
d) 将所截屏幕图片拼接完成截屏操作,实现静态展示。
2.如权利要求1所述的处理窗体滚动容器的截屏方法,其特征在于:所述步骤 a) 中所述分析窗体滚动容器:在于该容器分为没有滚动条,只有水平滚动条,只有垂直滚动条,具有水平和垂直滚动条四种情况,以上所述四种情况分析后找到其特征属性,并配置到配置文件中。
3.如权利要求1所述的处理窗体滚动容器的截屏方法,其特征在于:所述步骤 b) 中所述加载钩子:在于该过程是windows的钩子技术,解决滚动定位、截屏和拼接的问题。
4.如权利要求1所述的处理窗体滚动容器的截屏方法,其特征在于:所述步骤 c) 中所述动态截屏,是根据配置的特征属性,按照相关的算法和方式对窗体处理容器进行动态截屏操作。
5.如权利要求1所述的处理窗体滚动容器的截屏方法,其特征在于:所述步骤 d) 中所述静态展示:将滚动截屏的内容,按照相关的算法和方式进行处理,并将其完整地展示出来。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710151786.0A CN108628523A (zh) | 2017-03-15 | 2017-03-15 | 一种处理窗体滚动容器的截屏方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710151786.0A CN108628523A (zh) | 2017-03-15 | 2017-03-15 | 一种处理窗体滚动容器的截屏方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108628523A true CN108628523A (zh) | 2018-10-09 |
Family
ID=63686249
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710151786.0A Pending CN108628523A (zh) | 2017-03-15 | 2017-03-15 | 一种处理窗体滚动容器的截屏方法 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108628523A (zh) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110047488A1 (en) * | 2009-08-24 | 2011-02-24 | Emma Butin | Display-independent recognition of graphical user interface control |
CN105739873A (zh) * | 2016-03-10 | 2016-07-06 | 努比亚技术有限公司 | 一种截屏方法及终端 |
CN105760057A (zh) * | 2016-02-26 | 2016-07-13 | 努比亚技术有限公司 | 截屏装置和方法 |
-
2017
- 2017-03-15 CN CN201710151786.0A patent/CN108628523A/zh active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110047488A1 (en) * | 2009-08-24 | 2011-02-24 | Emma Butin | Display-independent recognition of graphical user interface control |
CN105760057A (zh) * | 2016-02-26 | 2016-07-13 | 努比亚技术有限公司 | 截屏装置和方法 |
CN105739873A (zh) * | 2016-03-10 | 2016-07-06 | 努比亚技术有限公司 | 一种截屏方法及终端 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8570326B2 (en) | Rule based visualization mechanism | |
US20140208262A1 (en) | Dynamic control method for resizing sub-windows on a screen of a display | |
US9721391B2 (en) | Positioning of projected augmented reality content | |
DE102013103616A1 (de) | Berührungsbildschirm Texteingabe | |
CN109375983B (zh) | 终端内输入法窗口自动调整的方法 | |
US9983764B2 (en) | Method, electronic device, and non-transitory storage medium for adjusting icons | |
US8751542B2 (en) | Dynamically scalable modes | |
US11921795B2 (en) | Data normalization and extraction system | |
US9280452B1 (en) | Systems and methods for generating test cases | |
EP4310651A1 (en) | Screen capture method and apparatus, electronic device, and readable storage medium | |
CN104461312A (zh) | 一种显示控制方法及电子设备 | |
US20140325409A1 (en) | Active & Efficient Monitoring of a Graphical User Interface | |
US20210157928A1 (en) | Information processing apparatus, information processing method, and program | |
US20160062637A1 (en) | Method, apparatus and non-transitory storage medium for processing punctuation mark | |
US20150007079A1 (en) | Combining parallel coordinates and histograms | |
CN104331219A (zh) | 一种图标显示方法、装置及系统 | |
US10191955B2 (en) | Detection and visualization of schema-less data | |
US8839095B2 (en) | User interface to define and/or communicate space between objects | |
CN108628523A (zh) | 一种处理窗体滚动容器的截屏方法 | |
US20180292686A1 (en) | Display unit process control method and system | |
CN111638844A (zh) | 截屏方法、装置及电子设备 | |
CN114995914A (zh) | 图片数据的处理方法、装置、计算机设备及存储介质 | |
CN111292037B (zh) | 在仓储管理中通过视频划线分区的方法和系统 | |
CN107704174A (zh) | 一种窗口抓取方法及系统、计算机装置及存储器 | |
CN113885981A (zh) | 桌面编辑方法、装置和电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181009 |
|
WD01 | Invention patent application deemed withdrawn after publication |