Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gifitti
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nick Kozel
Gifitti
Commits
5a6b194c
Commit
5a6b194c
authored
8 years ago
by
Nick Kozel
Browse files
Options
Downloads
Patches
Plain Diff
fixing clone issue with resizing
parent
8b3d3c38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Gifitti/Gifitti/View_Models/MainForm.Designer.cs
+7
-7
7 additions, 7 deletions
src/Gifitti/Gifitti/View_Models/MainForm.Designer.cs
src/Gifitti/Gifitti/View_Models/SaveAsXbyYPrompt.cs
+7
-2
7 additions, 2 deletions
src/Gifitti/Gifitti/View_Models/SaveAsXbyYPrompt.cs
with
14 additions
and
9 deletions
src/Gifitti/Gifitti/View_Models/MainForm.Designer.cs
+
7
−
7
View file @
5a6b194c
...
...
@@ -41,6 +41,7 @@ namespace Gifitti.View_Models
this
.
PNG
=
new
System
.
Windows
.
Forms
.
MenuItem
();
this
.
BMP
=
new
System
.
Windows
.
Forms
.
MenuItem
();
this
.
TIFF
=
new
System
.
Windows
.
Forms
.
MenuItem
();
this
.
menuResize
=
new
System
.
Windows
.
Forms
.
MenuItem
();
this
.
menuFileSaveAs
=
new
System
.
Windows
.
Forms
.
MenuItem
();
this
.
menuHelp
=
new
System
.
Windows
.
Forms
.
MenuItem
();
this
.
textBox1
=
new
System
.
Windows
.
Forms
.
TextBox
();
...
...
@@ -54,7 +55,6 @@ namespace Gifitti.View_Models
this
.
trackBar1
=
new
System
.
Windows
.
Forms
.
TrackBar
();
this
.
label4
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label6
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
menuResize
=
new
System
.
Windows
.
Forms
.
MenuItem
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
gifView
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
trackBar1
)).
BeginInit
();
this
.
SuspendLayout
();
...
...
@@ -129,6 +129,12 @@ namespace Gifitti.View_Models
this
.
TIFF
.
Text
=
"TIFF"
;
this
.
TIFF
.
Click
+=
new
System
.
EventHandler
(
this
.
MenuItemExportTIFF
);
//
// menuResize
//
this
.
menuResize
.
Index
=
2
;
this
.
menuResize
.
Text
=
"Resize..."
;
this
.
menuResize
.
Click
+=
new
System
.
EventHandler
(
this
.
MenuItemResize
);
//
// menuFileSaveAs
//
this
.
menuFileSaveAs
.
Index
=
3
;
...
...
@@ -243,12 +249,6 @@ namespace Gifitti.View_Models
this
.
label6
.
TabIndex
=
12
;
this
.
label6
.
Text
=
"GIFITTI"
;
//
// menuResize
//
this
.
menuResize
.
Index
=
2
;
this
.
menuResize
.
Text
=
"Resize..."
;
this
.
menuResize
.
Click
+=
new
System
.
EventHandler
(
this
.
MenuItemResize
);
//
// MainForm
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
8F
,
16F
);
...
...
This diff is collapsed.
Click to expand it.
src/Gifitti/Gifitti/View_Models/SaveAsXbyYPrompt.cs
+
7
−
2
View file @
5a6b194c
...
...
@@ -16,14 +16,18 @@ namespace Gifitti.View_Models
public
partial
class
SaveAsXbyYPrompt
:
Form
{
GifModel
gm
;
int
orignalWidth
=
0
;
int
originalHeight
=
0
;
int
width
=
0
;
int
height
=
0
;
public
SaveAsXbyYPrompt
(
int
width
,
int
height
,
GifModel
gm
)
{
InitializeComponent
();
this
.
width
=
width
;
this
.
height
=
height
;
orignalWidth
=
width
;
originalHeight
=
height
;
this
.
width
=
orignalWidth
;
this
.
height
=
originalHeight
;
WidthTextBox
.
Text
=
this
.
width
.
ToString
();
HeightTextBox
.
Text
=
this
.
height
.
ToString
();
this
.
gm
=
gm
;
//make this a clone
...
...
@@ -50,6 +54,7 @@ namespace Gifitti.View_Models
{
MessageBox
.
Show
(
"Save Path Invalid!"
);
}
TransformGif
.
resizeGif
(
gm
,
orignalWidth
,
originalHeight
);
this
.
Close
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment