Upload files to 'UI'
This commit is contained in:
parent
7676b073c3
commit
ce27337298
3 changed files with 49 additions and 4 deletions
|
@ -1,5 +1,20 @@
|
||||||
# THIS FILE IS A PART OF VCStudio
|
####################################
|
||||||
# PYTHON 3
|
# #
|
||||||
|
# COPYRIGHT NOTICE #
|
||||||
|
# #
|
||||||
|
# This file is a part of Victori- #
|
||||||
|
# ous Children Studio Organizer. #
|
||||||
|
# Or simply VCStudio. Copyright #
|
||||||
|
# of J.Y.Amihud. But don't be sad #
|
||||||
|
# because I released the entire #
|
||||||
|
# project under a GNU GPL license. #
|
||||||
|
# You may use Version 3 or later. #
|
||||||
|
# See www.gnu.org/licenses if your #
|
||||||
|
# copy has no License file. Please #
|
||||||
|
# note. Ones I used the GPL v2 for #
|
||||||
|
# it. It's no longer the case. #
|
||||||
|
# #
|
||||||
|
####################################
|
||||||
|
|
||||||
# This a console project manager.
|
# This a console project manager.
|
||||||
|
|
||||||
|
|
|
@ -195,6 +195,9 @@ def blur(surface, win, amount):
|
||||||
# scaling down
|
# scaling down
|
||||||
surface1 = cairo.ImageSurface(cairo.FORMAT_ARGB32, win.current['w'],
|
surface1 = cairo.ImageSurface(cairo.FORMAT_ARGB32, win.current['w'],
|
||||||
win.current['h'])
|
win.current['h'])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
slacedownlayer = cairo.Context(surface1)
|
slacedownlayer = cairo.Context(surface1)
|
||||||
slacedownlayer.scale(1/amount,
|
slacedownlayer.scale(1/amount,
|
||||||
1/amount)
|
1/amount)
|
||||||
|
@ -206,10 +209,22 @@ def blur(surface, win, amount):
|
||||||
surface2 = cairo.ImageSurface(cairo.FORMAT_ARGB32, win.current['w'],
|
surface2 = cairo.ImageSurface(cairo.FORMAT_ARGB32, win.current['w'],
|
||||||
win.current['h'])
|
win.current['h'])
|
||||||
slaceuplayer = cairo.Context(surface2)
|
slaceuplayer = cairo.Context(surface2)
|
||||||
|
|
||||||
slaceuplayer.scale(amount,
|
slaceuplayer.scale(amount,
|
||||||
amount)
|
amount)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
slaceuplayer.set_source_surface(surface1, 0 , 0)
|
slaceuplayer.set_source_surface(surface1, 0 , 0)
|
||||||
|
|
||||||
|
# Pixelized Blur
|
||||||
|
if not "PixelBlur" in win.settings:
|
||||||
|
settings.write("PixelBlur", False) # Writing to file
|
||||||
|
win.settings = settings.load_all()
|
||||||
|
if win.settings["PixelBlur"]:
|
||||||
|
p = slaceuplayer.get_source()
|
||||||
|
p.set_filter(cairo.FILTER_NEAREST)
|
||||||
|
|
||||||
slaceuplayer.paint()
|
slaceuplayer.paint()
|
||||||
|
|
||||||
return surface2
|
return surface2
|
||||||
|
|
|
@ -1,5 +1,20 @@
|
||||||
# THIS FILE IS A PART OF VCStudio
|
####################################
|
||||||
# PYTHON 3
|
# #
|
||||||
|
# COPYRIGHT NOTICE #
|
||||||
|
# #
|
||||||
|
# This file is a part of Victori- #
|
||||||
|
# ous Children Studio Organizer. #
|
||||||
|
# Or simply VCStudio. Copyright #
|
||||||
|
# of J.Y.Amihud. But don't be sad #
|
||||||
|
# because I released the entire #
|
||||||
|
# project under a GNU GPL license. #
|
||||||
|
# You may use Version 3 or later. #
|
||||||
|
# See www.gnu.org/licenses if your #
|
||||||
|
# copy has no License file. Please #
|
||||||
|
# note. Ones I used the GPL v2 for #
|
||||||
|
# it. It's no longer the case. #
|
||||||
|
# #
|
||||||
|
####################################
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import datetime
|
import datetime
|
||||||
|
|
Loading…
Add table
Reference in a new issue