Help on Flipping Images
Help on Flipping Images
Help on Flipping Images
Help on Flipping Images
Help on Flipping Images
Help on Flipping Images Help on Flipping Images Help on Flipping Images Help on Flipping Images Help on Flipping Images Help on Flipping Images Help on Flipping Images Help on Flipping Images
Help on Flipping Images Help on Flipping Images
Help on Flipping Images
Go Back  Xtreme Visual Basic Talk > > > Help on Flipping Images


Reply
 
Thread Tools Display Modes
  #1  
Old 10-12-2012, 12:40 AM
pampam686 pampam686 is offline
Freshman
 
Join Date: Nov 2010
Posts: 33
Default Help on Flipping Images


whenever i use the flip method to flip an image in the variable it flips those in other variables containing that image.

example:

dim img1(0 to 800),img2(0 to 800) as image
for i=0 to 800
img1(i) = image.fromfile(address(i))
img2(i) = img1(i)
img2(i).RotateFlip(RotateFlipType.Rotate180FlipY)
next


But if i do this img1 gets flipped too. What can i do to have img1 not flipped and img2 flipped? BUT WAIT, i must only use image.fromfile only ONCE. Why? Because i load 800+ images on img1 and if i do that too for img2 i run out of memory.
Reply With Quote
  #2  
Old 10-12-2012, 01:58 AM
Goggy's Avatar
Goggy Goggy is offline
Contributor
 
Join Date: Sep 2005
Location: Enschede,The Netherlands
Posts: 670
Default

Quote:
img2(i) = img1(i)
your setting a reference (a pointer) to img1. To solve this use the clone methode of the image object like so
Code:
img2(i) = CType(img1(i).Clone, Image)
__________________
As finishing touch, god created the Dutch!

utterly useless, but always trying to help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Help on Flipping Images
Help on Flipping Images
Help on Flipping Images Help on Flipping Images
Help on Flipping Images
Help on Flipping Images
Help on Flipping Images Help on Flipping Images Help on Flipping Images Help on Flipping Images Help on Flipping Images Help on Flipping Images Help on Flipping Images
Help on Flipping Images
Help on Flipping Images
 
Help on Flipping Images
Help on Flipping Images
 
-->