目前我正在开发一个WPF应用程序,我有一个任务是截取包含一些图表的UserControl的截图。 我现在怎么做:
def partition3(alist, lower, heigher, size):
start = 0
while alist[start] < lower:
start = start + 1
end = size-1
while alist[end] > heigher:
end = end - 1
i = start
while i <= end:
if (i > start) and (alist[i] < lower):
alist[i], alist[start] = alist[start], alist[i]
while alist[start] < lower:
start = start + 1
elif alist[i] > heigher:
alist[i], alist[end] = alist[end], alist[i]
while alist[end] > heigher:
end = end - 1
else:
i += 1
return alist
def sort(alist, low, high):
return partition3(alist, low, high, len(alist))
print sort([1, 14, 5, 20, 4, 2, 54, 20, 87, 98, 3, 1, 32], 10, 20)
如果UserControl在我的应用中完全可见,则此方法有效。
但是,有些情况下图表不再完全可见,然后您必须全屏才能正确捕获整个UserControl。
我的问题:有没有办法在不全屏的情况下捕获整个UserControl?