Upload files to 'UI'

This commit is contained in:
Jeison Yehuda Amihud (Blender Dumbass) 2021-12-19 18:12:19 +00:00
parent 7676b073c3
commit ce27337298
3 changed files with 49 additions and 4 deletions

View file

@ -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.

View file

@ -195,6 +195,9 @@ def blur(surface, win, amount):
# scaling down
surface1 = cairo.ImageSurface(cairo.FORMAT_ARGB32, win.current['w'],
win.current['h'])
slacedownlayer = cairo.Context(surface1)
slacedownlayer.scale(1/amount,
1/amount)
@ -206,10 +209,22 @@ def blur(surface, win, amount):
surface2 = cairo.ImageSurface(cairo.FORMAT_ARGB32, win.current['w'],
win.current['h'])
slaceuplayer = cairo.Context(surface2)
slaceuplayer.scale(amount,
amount)
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()
return surface2

View file

@ -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 datetime