From 03bcb14755424996a41345af3d376cf8435387bc Mon Sep 17 00:00:00 2001
From: Louis Chmielewski <louischmielewski@MacBook-Air-de-Louis.local>
Date: Fri, 15 Mar 2024 13:26:02 +0100
Subject: [PATCH] __init__ class bloc

---
 .DS_Store                   | Bin 10244 -> 10244 bytes
 Projet/.DS_Store            | Bin 6148 -> 6148 bytes
 Projet/src/bloc.py          |   3 +++
 Projet/src/decoupe_image.py |  29 +++++++++++++++++++++++++++++
 Projet/src/fonctions.py     |   2 +-
 5 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100755 Projet/src/decoupe_image.py

diff --git a/.DS_Store b/.DS_Store
index 003afd4f6d0267c410233112bbb4c720804e7e90..7db3cfc7620c61be9d8fde923d585642becfa3b5 100644
GIT binary patch
delta 161
zcmZn(XbIS$CJ@Vihk=2Cg+Y%YogtH<Bsbs1B`GIAiGhKELwE8Kd-Y349Z}^|@X8lt
z7zQWj=N2%4fXau>%>wd_$_5u17#P?X0vL)I@)@!iQc<m8U|{%QIr*rd5;Ld9rOB@Z
N6&M$6<`()X3IG_tDhL1o

delta 161
zcmZn(XbIS$CJ@Wi%fP_E!l1{H&XCDalAG`1l9ZF5#K6G7(XSOKrhe(DBdUA~UipFy
z!{Frn+yVv=P-)oQEFjOQtmnhPz`({3z)-}H&ydBCifRo50|Srx<fDR0%w@MOOnxP(
Mz&K$ux6n^f02~A-h5!Hn

diff --git a/Projet/.DS_Store b/Projet/.DS_Store
index e740dabcb827ecdfd5d0f3f0a0108543136de213..467feec1eb1da20798a49ef91e27c4c67f24c65d 100644
GIT binary patch
delta 39
vcmZoMXffFEj*UslXz~X(Nv02$leyU?*@8Z9*VDK(S&LnYF<`SR`+flc5b_NZ

delta 39
vcmZoMXffFEj*Urv?c@(^l1x16leyU?*)|HibH8(8vKG4(qr+xb_Wc3?4TB8@

diff --git a/Projet/src/bloc.py b/Projet/src/bloc.py
index f6656c0..f7f02fe 100755
--- a/Projet/src/bloc.py
+++ b/Projet/src/bloc.py
@@ -21,6 +21,9 @@ class Bloc:
         """
         Initialise le type bloc à la valeur de l'image 
         """
+        largeur, hauteur = image.size
+        pixel_hl = image.getpixel((0, 0))
+        pixel_lr = image.getpixel((largeur, hauteur))
         self.image = image
         
     def __eq__(self, other):
diff --git a/Projet/src/decoupe_image.py b/Projet/src/decoupe_image.py
new file mode 100755
index 0000000..4dd49ad
--- /dev/null
+++ b/Projet/src/decoupe_image.py
@@ -0,0 +1,29 @@
+#!/usr/bin/python3
+# -*- coding: utf-8 -*-
+
+"""
+:mod:`fonctions` module : fonctions principal
+
+:author: Louis Chmielewski
+
+:date: 2024 mars
+
+"""
+from PIL import Image, ImageDraw
+def decoupe_image(image: Bloc, ordre: int) -> Bloc:
+    """
+    Decoupe un bloc en quatre bloc "ordre" fois 
+    Précondition : 
+    Exemple(s) :
+    $$$ 
+
+    """
+    image = Image.open(image)
+    x = ?
+    y = ?
+    if 0 <= x < largeur and 0 <= y < hauteur:
+    pixel = image.getpixel((x, y))
+    
+    if ordre != 0:
+        
+        
\ No newline at end of file
diff --git a/Projet/src/fonctions.py b/Projet/src/fonctions.py
index 57a6b59..cb4dc7a 100755
--- a/Projet/src/fonctions.py
+++ b/Projet/src/fonctions.py
@@ -2,7 +2,7 @@
 # -*- coding: utf-8 -*-
 
 """
-:mod:`association` module : un module pour la modélisation des blocs
+:mod:`fonctions` module : fonctions pour la résolution du projet
 
 :author: Louis Chmielewski
 
-- 
GitLab