mirror of
https://github.com/love2d/megasource.git
synced 2026-08-17 11:11:35 +02:00
Add DevIL 1.7.8.
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
#include "stdafx.h"
|
||||
|
||||
using namespace System::Reflection;
|
||||
using namespace System::Runtime::CompilerServices;
|
||||
|
||||
//
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
//
|
||||
[assembly:AssemblyTitleAttribute("DevIL.NET")];
|
||||
[assembly:AssemblyDescriptionAttribute("DevIL.NET - Image Library for .NET framework")];
|
||||
[assembly:AssemblyConfigurationAttribute("")];
|
||||
[assembly:AssemblyCompanyAttribute("(C) 2005 - Marco Mastropaolo (http://www.mastropaolo.com)")];
|
||||
[assembly:AssemblyProductAttribute("(C) 2005 - Marco Mastropaolo (http://www.mastropaolo.com)")];
|
||||
[assembly:AssemblyCopyrightAttribute("(C) 2005 - Marco Mastropaolo (http://www.mastropaolo.com) - Released under BSD license")];
|
||||
[assembly:AssemblyTrademarkAttribute("(C) 2005 - Marco Mastropaolo (http://www.mastropaolo.com) - Released under BSD license")];
|
||||
[assembly:AssemblyCultureAttribute("")];
|
||||
|
||||
//
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the value or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly:AssemblyVersionAttribute("1.1.*")];
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified, the assembly is not signed.
|
||||
// (*) KeyName refers to a key that has been installed in the Crypto Service
|
||||
// Provider (CSP) on your machine. KeyFile refers to a file which contains
|
||||
// a key.
|
||||
// (*) If the KeyFile and the KeyName values are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP, that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the KeyFile is installed into the CSP and used.
|
||||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
|
||||
// When specifying the KeyFile, the location of the KeyFile should be
|
||||
// relative to the project directory.
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
[assembly:AssemblyDelaySignAttribute(false)];
|
||||
[assembly:AssemblyKeyFileAttribute("")];
|
||||
[assembly:AssemblyKeyNameAttribute("")];
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
DevIL.NET
|
||||
Copyright (c) 2005, Marco Mastropaolo
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of DevIL.NET nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,308 @@
|
||||
// DevIL.NET
|
||||
// Copyright (c) 2005, Marco Mastropaolo
|
||||
// All rights reserved.
|
||||
|
||||
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
// following conditions are met:
|
||||
|
||||
// * Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
||||
// following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
// following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
// * Neither the name of DevIL.NET nor the names of its contributors may be used to endorse or promote products
|
||||
// derived from this software without specific prior written permission.
|
||||
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#using <mscorlib.dll>
|
||||
#using <System.Drawing.dll>
|
||||
#include <windows.h>
|
||||
#include "IL/il.h"
|
||||
#include "IL/ilu.h"
|
||||
|
||||
#undef LoadBitmap // brain damaged windows.h macros..
|
||||
|
||||
typedef ILboolean (*PFNILUSCALE)(ILuint Width, ILuint Height, ILuint Depth);
|
||||
typedef ILvoid (*PFNILUIMAGEPARAMETER)(ILenum PName, ILenum Param);
|
||||
|
||||
|
||||
|
||||
namespace DevIL
|
||||
{
|
||||
class StringAutoMarshal
|
||||
{
|
||||
char* m_string;
|
||||
|
||||
inline explicit StringAutoMarshal(const StringAutoMarshal& i_Source) : m_string(NULL) {}
|
||||
inline StringAutoMarshal& operator= (const StringAutoMarshal& i_Source) {}
|
||||
|
||||
public:
|
||||
inline explicit StringAutoMarshal(const System::String __gc* i_strString) : m_string(NULL)
|
||||
{
|
||||
m_string = (char*)(void*)System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(const_cast<System::String __gc*>(i_strString));
|
||||
}
|
||||
|
||||
|
||||
inline ~StringAutoMarshal()
|
||||
{
|
||||
System::Runtime::InteropServices::Marshal::FreeHGlobal((void*)m_string);
|
||||
}
|
||||
|
||||
inline char* GetNativeString()
|
||||
{
|
||||
return m_string;
|
||||
}
|
||||
|
||||
inline operator char*()
|
||||
{
|
||||
return m_string;
|
||||
}
|
||||
};
|
||||
|
||||
public __value enum DevILScaleFilter
|
||||
{
|
||||
NEAREST = ILU_NEAREST,
|
||||
LINEAR = ILU_LINEAR,
|
||||
BILINEAR = ILU_BILINEAR,
|
||||
BOX = ILU_SCALE_BOX,
|
||||
TRIANGLE = ILU_SCALE_TRIANGLE,
|
||||
BELL = ILU_SCALE_BELL,
|
||||
BSPLINE = ILU_SCALE_BSPLINE,
|
||||
LANCZOS3 = ILU_SCALE_LANCZOS3,
|
||||
MITCHELL = ILU_SCALE_MITCHELL
|
||||
};
|
||||
|
||||
public __value enum DevILScaleKind
|
||||
{
|
||||
DO_NOT_SCALE,
|
||||
WIDTH_AND_HEIGHT,
|
||||
WIDTH_ONLY,
|
||||
HEIGHT_ONLY,
|
||||
KEEPRATIO_USING_WIDTH,
|
||||
KEEPRATIO_USING_HEIGHT
|
||||
};
|
||||
|
||||
|
||||
public __value enum DevILErrorCode
|
||||
{
|
||||
OK = 0,
|
||||
ILU_DLL_NOT_FOUND = 0x0001,
|
||||
INVALID_ENUM = IL_INVALID_ENUM,
|
||||
OUT_OF_MEMORY = IL_OUT_OF_MEMORY,
|
||||
FORMAT_NOT_SUPPORTED = IL_FORMAT_NOT_SUPPORTED,
|
||||
INTERNAL_ERROR = IL_INTERNAL_ERROR,
|
||||
INVALID_VALUE = IL_INVALID_VALUE,
|
||||
ILLEGAL_OPERATION = IL_ILLEGAL_OPERATION,
|
||||
ILLEGAL_FILE_VALUE = IL_ILLEGAL_FILE_VALUE,
|
||||
INVALID_FILE_HEADER = IL_INVALID_FILE_HEADER,
|
||||
INVALID_PARAM = IL_INVALID_PARAM,
|
||||
COULD_NOT_OPEN_FILE = IL_COULD_NOT_OPEN_FILE,
|
||||
INVALID_EXTENSION = IL_INVALID_EXTENSION,
|
||||
FILE_ALREADY_EXISTS = IL_FILE_ALREADY_EXISTS,
|
||||
OUT_FORMAT_SAME = IL_OUT_FORMAT_SAME,
|
||||
STACK_OVERFLOW = IL_STACK_OVERFLOW,
|
||||
STACK_UNDERFLOW = IL_STACK_UNDERFLOW,
|
||||
INVALID_CONVERSION = IL_INVALID_CONVERSION,
|
||||
BAD_DIMENSIONS = IL_BAD_DIMENSIONS,
|
||||
FILE_READ_ERROR = IL_FILE_READ_ERROR,
|
||||
FILE_WRITE_ERROR = IL_FILE_WRITE_ERROR,
|
||||
LIB_GIF_ERROR = IL_LIB_GIF_ERROR,
|
||||
LIB_JPEG_ERROR = IL_LIB_JPEG_ERROR,
|
||||
LIB_PNG_ERROR = IL_LIB_PNG_ERROR,
|
||||
LIB_TIFF_ERROR = IL_LIB_TIFF_ERROR,
|
||||
LIB_MNG_ERROR = IL_LIB_MNG_ERROR,
|
||||
UNKNOWN_ERROR = IL_UNKNOWN_ERROR
|
||||
};
|
||||
|
||||
|
||||
public __gc class DevIL
|
||||
{
|
||||
protected:
|
||||
static ILuint s_iImageID = 0;
|
||||
static bool s_bInitDone = false;
|
||||
static bool s_bIluLoaded = false;
|
||||
static DevILErrorCode s_eErrCode = OK;
|
||||
static PFNILUSCALE pfnIluScale = NULL;
|
||||
static PFNILUIMAGEPARAMETER pfnIluImageParameter = NULL;
|
||||
static void LoadILU();
|
||||
public:
|
||||
static System::Drawing::Bitmap __gc* LoadBitmap(System::String __gc* i_szFileName);
|
||||
static System::Drawing::Bitmap __gc* LoadBitmapAndScale(System::String __gc* i_szFileName,
|
||||
int i_iWidth, int i_iHeight,
|
||||
DevILScaleFilter i_eFilter, DevILScaleKind i_eKind);
|
||||
static bool SaveBitmap(System::String __gc* i_szFileName, System::Drawing::Bitmap __gc* i_poBitmap);
|
||||
static DevILErrorCode GetErrorCode();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
void DevIL::DevIL::LoadILU()
|
||||
{
|
||||
HMODULE hM = LoadLibrary("ILU.dll");
|
||||
|
||||
if (hM)
|
||||
{
|
||||
pfnIluScale = (PFNILUSCALE)GetProcAddress(hM, "iluScale");
|
||||
pfnIluImageParameter = (PFNILUIMAGEPARAMETER)GetProcAddress(hM, "iluImageParameter");
|
||||
s_bIluLoaded = (pfnIluScale != NULL) && (pfnIluImageParameter != NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
System::Drawing::Bitmap __gc* DevIL::DevIL::LoadBitmap(System::String __gc* i_szFileName)
|
||||
{
|
||||
return LoadBitmapAndScale(i_szFileName, 0, 0, NEAREST, DO_NOT_SCALE);
|
||||
}
|
||||
|
||||
DevIL::DevILErrorCode DevIL::DevIL::GetErrorCode()
|
||||
{
|
||||
if (s_eErrCode == OK)
|
||||
{
|
||||
return DevILErrorCode(ilGetError());
|
||||
}
|
||||
else
|
||||
{
|
||||
DevILErrorCode eErr = s_eErrCode;
|
||||
s_eErrCode = OK;
|
||||
return eErr;
|
||||
}
|
||||
}
|
||||
|
||||
System::Drawing::Bitmap __gc* DevIL::DevIL::LoadBitmapAndScale(System::String __gc* i_szFileName,
|
||||
int i_iWidth, int i_iHeight,
|
||||
DevILScaleFilter i_eFilter,
|
||||
DevILScaleKind i_eKind)
|
||||
{
|
||||
if (!s_bInitDone)
|
||||
{
|
||||
ilInit();
|
||||
s_bInitDone = true;
|
||||
}
|
||||
ilGenImages(1, &s_iImageID);
|
||||
ilBindImage(s_iImageID);
|
||||
|
||||
if (0==ilLoadImage(StringAutoMarshal(i_szFileName)))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int iW = ilGetInteger(IL_IMAGE_WIDTH);
|
||||
int iH = ilGetInteger(IL_IMAGE_HEIGHT);
|
||||
bool bResize = true;
|
||||
|
||||
switch(i_eKind)
|
||||
{
|
||||
case WIDTH_AND_HEIGHT:
|
||||
iW = i_iWidth;
|
||||
iH = i_iHeight;
|
||||
break;
|
||||
case WIDTH_ONLY:
|
||||
iW = i_iWidth;
|
||||
break;
|
||||
case HEIGHT_ONLY:
|
||||
iH = i_iHeight;
|
||||
break;
|
||||
case KEEPRATIO_USING_WIDTH:
|
||||
iH = int(double(iH) * double(i_iWidth) / double(iW));
|
||||
iW = i_iWidth;
|
||||
break;
|
||||
case KEEPRATIO_USING_HEIGHT:
|
||||
iW = int(double(iW) * double(i_iHeight) / double(iH));
|
||||
iH = i_iHeight;
|
||||
break;
|
||||
case DO_NOT_SCALE:
|
||||
bResize = false;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
System::Drawing::Bitmap __gc* pBmp = __gc new System::Drawing::Bitmap(iW, iH, System::Drawing::Imaging::PixelFormat::Format32bppArgb);
|
||||
|
||||
System::Drawing::Rectangle rect; rect.X = 0; rect.Y = 0; rect.Width = iW; rect.Height = iH;
|
||||
|
||||
System::Drawing::Imaging::BitmapData __gc* pBd = pBmp->LockBits(rect,
|
||||
System::Drawing::Imaging::ImageLockMode::WriteOnly,
|
||||
System::Drawing::Imaging::PixelFormat::Format32bppArgb);
|
||||
|
||||
void* pScan0 = (void*)(pBd->Scan0);
|
||||
|
||||
// this is dangerous bc we ignore stride.. but it works and is FAST! ;)
|
||||
|
||||
if (bResize)
|
||||
{
|
||||
if (!s_bIluLoaded)
|
||||
{
|
||||
LoadILU();
|
||||
}
|
||||
|
||||
if (s_bIluLoaded)
|
||||
{
|
||||
pfnIluImageParameter(ILU_FILTER, (int)(i_eFilter));
|
||||
pfnIluScale(iW, iH, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
s_eErrCode = ILU_DLL_NOT_FOUND;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
ilConvertImage(IL_BGRA, IL_UNSIGNED_BYTE); // support for non 32bit images..
|
||||
ilCopyPixels(0, 0, 0, iW, iH, 1, IL_BGRA, IL_UNSIGNED_BYTE, pScan0);
|
||||
|
||||
ilDeleteImages(1, &s_iImageID);
|
||||
|
||||
pBmp->UnlockBits(pBd);
|
||||
|
||||
return pBmp;
|
||||
}
|
||||
|
||||
bool DevIL::DevIL::SaveBitmap(System::String __gc* i_szFileName, System::Drawing::Bitmap __gc* i_poBitmap)
|
||||
{
|
||||
if (!s_bInitDone)
|
||||
{
|
||||
ilInit();
|
||||
s_bInitDone = true;
|
||||
}
|
||||
ilGenImages(1, &s_iImageID);
|
||||
ilBindImage(s_iImageID);
|
||||
|
||||
int iW = i_poBitmap->get_Width();
|
||||
int iH = i_poBitmap->get_Height();
|
||||
|
||||
System::Drawing::Rectangle rect; rect.X = 0; rect.Y = 0; rect.Width = iW; rect.Height = iH;
|
||||
|
||||
i_poBitmap->RotateFlip(System::Drawing::RotateFlipType::RotateNoneFlipY);
|
||||
|
||||
System::Drawing::Imaging::BitmapData __gc* pBd = i_poBitmap->LockBits(rect,
|
||||
System::Drawing::Imaging::ImageLockMode::ReadOnly,
|
||||
System::Drawing::Imaging::PixelFormat::Format32bppArgb);
|
||||
|
||||
void* pScan0 = (void*)(pBd->Scan0);
|
||||
|
||||
bool bSuccess = 0!= ilTexImage(iW, iH, 1, 4, IL_BGRA, IL_UNSIGNED_BYTE, pScan0);
|
||||
|
||||
if (!bSuccess)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool bRes = ilSaveImage(StringAutoMarshal(i_szFileName))!=0;
|
||||
|
||||
ilDeleteImages(1, &s_iImageID);
|
||||
|
||||
i_poBitmap->UnlockBits(pBd);
|
||||
i_poBitmap->RotateFlip(System::Drawing::RotateFlipType::RotateNoneFlipY);
|
||||
|
||||
return bRes;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 7.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DevIL.NET", "DevIL.NET.vcproj", "{30D94686-D452-4A73-B59D-178288807EE5}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ThumbView", "..\ThumbView\ThumbView.csproj", "{1541F8B7-DBE4-490B-9E1A-8D0122339F09}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageViewCs", "..\ImageViewCs\ImageViewCs.csproj", "{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}"
|
||||
EndProject
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ImageViewVb", "..\ImageViewVb\ImageViewVb.vbproj", "{F073580C-F355-4F4A-98B7-83D571B96B9E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(DPCodeReviewSolutionGUID) = preSolution
|
||||
DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000}
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
ConfigName.0 = Debug
|
||||
ConfigName.1 = Release
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectDependencies) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug.ActiveCfg = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug.Build.0 = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release.ActiveCfg = Release|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release.Build.0 = Release|Win32
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Debug.ActiveCfg = Debug|.NET
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Debug.Build.0 = Debug|.NET
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Release.ActiveCfg = Release|.NET
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Release.Build.0 = Release|.NET
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug.ActiveCfg = Debug|.NET
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug.Build.0 = Debug|.NET
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release.ActiveCfg = Release|.NET
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release.Build.0 = Release|.NET
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug.ActiveCfg = Debug|.NET
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug.Build.0 = Debug|.NET
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release.ActiveCfg = Release|.NET
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release.Build.0 = Release|.NET
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" encoding = "Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.00"
|
||||
Name="DevIL.NET"
|
||||
ProjectGUID="{30D94686-D452-4A73-B59D-178288807EE5}"
|
||||
Keyword="ManagedCProj">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
ManagedExtensions="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="g:\prg\devil\include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG"
|
||||
GeneratePreprocessedFile="0"
|
||||
MinimalRebuild="FALSE"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="devil.lib"
|
||||
OutputFile="$(OutDir)/DevIL.NET.dll"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="g:\prg\devil\lib"
|
||||
GenerateDebugInformation="TRUE"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
ManagedExtensions="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="g:\prg\devil\include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG"
|
||||
MinimalRebuild="FALSE"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="devil.lib"
|
||||
OutputFile="$(OutDir)/DevIL.NET.dll"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories="g:\prg\devil\lib"
|
||||
GenerateDebugInformation="TRUE"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm">
|
||||
<File
|
||||
RelativePath="DevIL.NET.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
GeneratePreprocessedFile="0"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc">
|
||||
<File
|
||||
RelativePath="DotNetIlu.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="Stdafx.h">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;r">
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath="ReadMe.txt">
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,58 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
//
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
//
|
||||
[assembly: AssemblyTitle("")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
//
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified, the assembly is not signed.
|
||||
// (*) KeyName refers to a key that has been installed in the Crypto Service
|
||||
// Provider (CSP) on your machine. KeyFile refers to a file which contains
|
||||
// a key.
|
||||
// (*) If the KeyFile and the KeyName values are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP, that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the KeyFile is installed into the CSP and used.
|
||||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
|
||||
// When specifying the KeyFile, the location of the KeyFile should be
|
||||
// relative to the project output directory which is
|
||||
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
|
||||
// located in the project directory, you would specify the AssemblyKeyFile
|
||||
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
[assembly: AssemblyDelaySign(false)]
|
||||
[assembly: AssemblyKeyFile("")]
|
||||
[assembly: AssemblyKeyName("")]
|
||||
@@ -0,0 +1,117 @@
|
||||
<VisualStudioProject>
|
||||
<CSHARP
|
||||
ProjectType = "Local"
|
||||
ProductVersion = "7.0.9466"
|
||||
SchemaVersion = "1.0"
|
||||
ProjectGuid = "{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}"
|
||||
>
|
||||
<Build>
|
||||
<Settings
|
||||
ApplicationIcon = "App.ico"
|
||||
AssemblyKeyContainerName = ""
|
||||
AssemblyName = "ImageViewCs"
|
||||
AssemblyOriginatorKeyFile = ""
|
||||
DefaultClientScript = "JScript"
|
||||
DefaultHTMLPageLayout = "Grid"
|
||||
DefaultTargetSchema = "IE50"
|
||||
DelaySign = "false"
|
||||
OutputType = "WinExe"
|
||||
RootNamespace = "ImageViewCs"
|
||||
StartupObject = ""
|
||||
>
|
||||
<Config
|
||||
Name = "Debug"
|
||||
AllowUnsafeBlocks = "false"
|
||||
BaseAddress = "285212672"
|
||||
CheckForOverflowUnderflow = "false"
|
||||
ConfigurationOverrideFile = ""
|
||||
DefineConstants = "DEBUG;TRACE"
|
||||
DocumentationFile = ""
|
||||
DebugSymbols = "true"
|
||||
FileAlignment = "4096"
|
||||
IncrementalBuild = "true"
|
||||
Optimize = "false"
|
||||
OutputPath = "bin\Debug\"
|
||||
RegisterForComInterop = "false"
|
||||
RemoveIntegerChecks = "false"
|
||||
TreatWarningsAsErrors = "false"
|
||||
WarningLevel = "4"
|
||||
/>
|
||||
<Config
|
||||
Name = "Release"
|
||||
AllowUnsafeBlocks = "false"
|
||||
BaseAddress = "285212672"
|
||||
CheckForOverflowUnderflow = "false"
|
||||
ConfigurationOverrideFile = ""
|
||||
DefineConstants = "TRACE"
|
||||
DocumentationFile = ""
|
||||
DebugSymbols = "false"
|
||||
FileAlignment = "4096"
|
||||
IncrementalBuild = "false"
|
||||
Optimize = "true"
|
||||
OutputPath = "bin\Release\"
|
||||
RegisterForComInterop = "false"
|
||||
RemoveIntegerChecks = "false"
|
||||
TreatWarningsAsErrors = "false"
|
||||
WarningLevel = "4"
|
||||
/>
|
||||
</Settings>
|
||||
<References>
|
||||
<Reference
|
||||
Name = "System"
|
||||
AssemblyName = "System"
|
||||
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.dll"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.Data"
|
||||
AssemblyName = "System.Data"
|
||||
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Data.dll"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.Drawing"
|
||||
AssemblyName = "System.Drawing"
|
||||
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Drawing.dll"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.Windows.Forms"
|
||||
AssemblyName = "System.Windows.Forms"
|
||||
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Windows.Forms.dll"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.XML"
|
||||
AssemblyName = "System.XML"
|
||||
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.XML.dll"
|
||||
/>
|
||||
<Reference
|
||||
Name = "DevIL.NET"
|
||||
Project = "{30D94686-D452-4A73-B59D-178288807EE5}"
|
||||
Package = "{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}"
|
||||
/>
|
||||
</References>
|
||||
</Build>
|
||||
<Files>
|
||||
<Include>
|
||||
<File
|
||||
RelPath = "App.ico"
|
||||
BuildAction = "Content"
|
||||
/>
|
||||
<File
|
||||
RelPath = "AssemblyInfo.cs"
|
||||
SubType = "Code"
|
||||
BuildAction = "Compile"
|
||||
/>
|
||||
<File
|
||||
RelPath = "frmImageView.cs"
|
||||
SubType = "Form"
|
||||
BuildAction = "Compile"
|
||||
/>
|
||||
<File
|
||||
RelPath = "frmImageView.resx"
|
||||
DependentUpon = "frmImageView.cs"
|
||||
BuildAction = "EmbeddedResource"
|
||||
/>
|
||||
</Include>
|
||||
</Files>
|
||||
</CSHARP>
|
||||
</VisualStudioProject>
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
<VisualStudioProject>
|
||||
<CSHARP>
|
||||
<Build>
|
||||
<Settings ReferencePath = "" >
|
||||
<Config
|
||||
Name = "Debug"
|
||||
EnableASPDebugging = "false"
|
||||
EnableASPXDebugging = "false"
|
||||
EnableUnmanagedDebugging = "false"
|
||||
EnableSQLServerDebugging = "false"
|
||||
RemoteDebugEnabled = "false"
|
||||
RemoteDebugMachine = ""
|
||||
StartAction = "Project"
|
||||
StartArguments = ""
|
||||
StartPage = ""
|
||||
StartProgram = ""
|
||||
StartURL = ""
|
||||
StartWorkingDirectory = ""
|
||||
StartWithIE = "false"
|
||||
/>
|
||||
<Config
|
||||
Name = "Release"
|
||||
EnableASPDebugging = "false"
|
||||
EnableASPXDebugging = "false"
|
||||
EnableUnmanagedDebugging = "false"
|
||||
EnableSQLServerDebugging = "false"
|
||||
RemoteDebugEnabled = "false"
|
||||
RemoteDebugMachine = ""
|
||||
StartAction = "Project"
|
||||
StartArguments = ""
|
||||
StartPage = ""
|
||||
StartProgram = ""
|
||||
StartURL = ""
|
||||
StartWorkingDirectory = ""
|
||||
StartWithIE = "false"
|
||||
/>
|
||||
</Settings>
|
||||
</Build>
|
||||
<OtherProjectSettings
|
||||
CopyProjectDestinationFolder = ""
|
||||
CopyProjectUncPath = ""
|
||||
CopyProjectOption = "0"
|
||||
ProjectView = "ProjectFiles"
|
||||
ProjectTrust = "0"
|
||||
/>
|
||||
</CSHARP>
|
||||
</VisualStudioProject>
|
||||
|
||||
@@ -0,0 +1,247 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
using System.Data;
|
||||
|
||||
namespace ImageViewCs
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for Form1.
|
||||
/// </summary>
|
||||
public class frmImageView : System.Windows.Forms.Form
|
||||
{
|
||||
private System.Windows.Forms.MainMenu mainMenu;
|
||||
private System.Windows.Forms.PictureBox pictureBox;
|
||||
private System.Windows.Forms.MenuItem mnuFile;
|
||||
private System.Windows.Forms.MenuItem mnuFileOpen;
|
||||
private System.Windows.Forms.MenuItem mnuFileSaveAs;
|
||||
private System.Windows.Forms.MenuItem mnuFileSep1;
|
||||
private System.Windows.Forms.MenuItem mnuFileExit;
|
||||
private System.Windows.Forms.MenuItem mnuHelp;
|
||||
private System.Windows.Forms.MenuItem mnuHelpAbout;
|
||||
private System.Windows.Forms.Panel panel;
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.Container components = null;
|
||||
|
||||
public frmImageView()
|
||||
{
|
||||
//
|
||||
// Required for Windows Form Designer support
|
||||
//
|
||||
InitializeComponent();
|
||||
|
||||
//
|
||||
// TODO: Add any constructor code after InitializeComponent call
|
||||
//
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
protected override void Dispose( bool disposing )
|
||||
{
|
||||
if( disposing )
|
||||
{
|
||||
if (components != null)
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
}
|
||||
base.Dispose( disposing );
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.mainMenu = new System.Windows.Forms.MainMenu();
|
||||
this.mnuFile = new System.Windows.Forms.MenuItem();
|
||||
this.mnuFileOpen = new System.Windows.Forms.MenuItem();
|
||||
this.mnuFileSaveAs = new System.Windows.Forms.MenuItem();
|
||||
this.mnuFileSep1 = new System.Windows.Forms.MenuItem();
|
||||
this.mnuFileExit = new System.Windows.Forms.MenuItem();
|
||||
this.mnuHelp = new System.Windows.Forms.MenuItem();
|
||||
this.mnuHelpAbout = new System.Windows.Forms.MenuItem();
|
||||
this.panel = new System.Windows.Forms.Panel();
|
||||
this.pictureBox = new System.Windows.Forms.PictureBox();
|
||||
this.panel.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// mainMenu
|
||||
//
|
||||
this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
||||
this.mnuFile,
|
||||
this.mnuHelp});
|
||||
//
|
||||
// mnuFile
|
||||
//
|
||||
this.mnuFile.Index = 0;
|
||||
this.mnuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
||||
this.mnuFileOpen,
|
||||
this.mnuFileSaveAs,
|
||||
this.mnuFileSep1,
|
||||
this.mnuFileExit});
|
||||
this.mnuFile.Text = "&File";
|
||||
//
|
||||
// mnuFileOpen
|
||||
//
|
||||
this.mnuFileOpen.Index = 0;
|
||||
this.mnuFileOpen.Text = "&Open...";
|
||||
this.mnuFileOpen.Click += new System.EventHandler(this.mnuFileOpen_Click);
|
||||
//
|
||||
// mnuFileSaveAs
|
||||
//
|
||||
this.mnuFileSaveAs.Index = 1;
|
||||
this.mnuFileSaveAs.Text = "Save &as...";
|
||||
this.mnuFileSaveAs.Click += new System.EventHandler(this.mnuFileSaveAs_Click);
|
||||
//
|
||||
// mnuFileSep1
|
||||
//
|
||||
this.mnuFileSep1.Index = 2;
|
||||
this.mnuFileSep1.Text = "-";
|
||||
//
|
||||
// mnuFileExit
|
||||
//
|
||||
this.mnuFileExit.Index = 3;
|
||||
this.mnuFileExit.Text = "E&xit";
|
||||
this.mnuFileExit.Click += new System.EventHandler(this.mnuFileExit_Click);
|
||||
//
|
||||
// mnuHelp
|
||||
//
|
||||
this.mnuHelp.Index = 1;
|
||||
this.mnuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
||||
this.mnuHelpAbout});
|
||||
this.mnuHelp.Text = "&?";
|
||||
//
|
||||
// mnuHelpAbout
|
||||
//
|
||||
this.mnuHelpAbout.Index = 0;
|
||||
this.mnuHelpAbout.Text = "&About...";
|
||||
this.mnuHelpAbout.Click += new System.EventHandler(this.mnuHelpAbout_Click);
|
||||
//
|
||||
// panel
|
||||
//
|
||||
this.panel.AutoScroll = true;
|
||||
this.panel.Controls.AddRange(new System.Windows.Forms.Control[] {
|
||||
this.pictureBox});
|
||||
this.panel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel.Name = "panel";
|
||||
this.panel.Size = new System.Drawing.Size(720, 414);
|
||||
this.panel.TabIndex = 1;
|
||||
//
|
||||
// pictureBox
|
||||
//
|
||||
this.pictureBox.Name = "pictureBox";
|
||||
this.pictureBox.Size = new System.Drawing.Size(720, 414);
|
||||
this.pictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
|
||||
this.pictureBox.TabIndex = 0;
|
||||
this.pictureBox.TabStop = false;
|
||||
//
|
||||
// frmImageView
|
||||
//
|
||||
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
|
||||
this.ClientSize = new System.Drawing.Size(720, 414);
|
||||
this.Controls.AddRange(new System.Windows.Forms.Control[] {
|
||||
this.panel});
|
||||
this.Menu = this.mainMenu;
|
||||
this.Name = "frmImageView";
|
||||
this.Text = "ImageView C#";
|
||||
this.panel.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.Run(new frmImageView());
|
||||
}
|
||||
|
||||
private System.Drawing.Bitmap m_bmp;
|
||||
|
||||
private void mnuFileOpen_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
System.Windows.Forms.OpenFileDialog ofd = new System.Windows.Forms.OpenFileDialog();
|
||||
ofd.Filter = "All Image Files(*.BMP;*.CUT;*.DCX;*.DDS;*.ICO;*.GIF;*.JPG;*.LBM;*.LIF;*.MDL;*.PCD;*.PCX;*.PIC;*.PNG;*.PNM;*.PSD;*.PSP;*.RAW;*.SGI;*.TGA;*.TIF;*.WAL;*.ACT;*.PAL;)|*.BMP;*.CUT;*.DCX;*.DDS;*.ICO;*.GIF;*.JPG;*.LBM;*.LIF;*.MDL;*.PCD;*.PCX;*.PIC;*.PNG;*.PNM;*.PSD;*.PSP;*.RAW;*.SGI;*.TGA;*.TIF;*.WAL;*.ACT;*.PAL|All files (*.*)|*.*";
|
||||
ofd.Filter += "|BMP files (*.BMP)|*.BMP";
|
||||
ofd.Filter += "|CUT files (*.CUT)|*.CUT";
|
||||
ofd.Filter += "|DCX files (*.DCX)|*.DCX";
|
||||
ofd.Filter += "|DDS files (*.DDS)|*.DDS";
|
||||
ofd.Filter += "|ICO files (*.ICO)|*.ICO";
|
||||
ofd.Filter += "|GIF files (*.GIF)|*.GIF";
|
||||
ofd.Filter += "|JPG files (*.JPG)|*.JPG";
|
||||
ofd.Filter += "|LBM files (*.LBM)|*.LBM";
|
||||
ofd.Filter += "|LIF files (*.LIF)|*.LIF";
|
||||
ofd.Filter += "|MDL files (*.MDL)|*.MDL";
|
||||
ofd.Filter += "|PCD files (*.PCD)|*.PCD";
|
||||
ofd.Filter += "|PCX files (*.PCX)|*.PCX";
|
||||
ofd.Filter += "|PIC files (*.PIC)|*.PIC";
|
||||
ofd.Filter += "|PNG files (*.PNG)|*.PNG";
|
||||
ofd.Filter += "|PNM files (*.PNM)|*.PNM";
|
||||
ofd.Filter += "|PSD files (*.PSD)|*.PSD";
|
||||
ofd.Filter += "|PSP files (*.PSP)|*.PSP";
|
||||
ofd.Filter += "|RAW files (*.RAW)|*.RAW";
|
||||
ofd.Filter += "|SGI files (*.SGI)|*.SGI";
|
||||
ofd.Filter += "|TGA files (*.TGA)|*.TGA";
|
||||
ofd.Filter += "|TIF files (*.TIF)|*.TIF";
|
||||
ofd.Filter += "|WAL files (*.WAL)|*.WAL";
|
||||
ofd.Filter += "|ACT files (*.ACT)|*.ACT";
|
||||
ofd.Filter += "|PAL files (*.PAL)|*.PAL";
|
||||
ofd.Filter += "|All files (*.*)|*.*";
|
||||
|
||||
if (ofd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
m_bmp = DevIL.DevIL.LoadBitmap(ofd.FileName);
|
||||
if (m_bmp != null)
|
||||
{
|
||||
pictureBox.Image = m_bmp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void mnuFileExit_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void mnuHelpAbout_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
MessageBox.Show("Program by Marco Mastropaolo\n\nThis is a C# example for the DevIL.NET library.\n\nhttp://www.mastropaolo.com", "About");
|
||||
}
|
||||
|
||||
private void mnuFileSaveAs_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
if (m_bmp != null)
|
||||
{
|
||||
System.Windows.Forms.SaveFileDialog sfd = new System.Windows.Forms.SaveFileDialog();
|
||||
sfd.Filter = "BMP format (*.BMP)|*.BMP";
|
||||
sfd.Filter += "|DDS format (*.DDS)|*.DDS";
|
||||
sfd.Filter += "|JPG format (*.JPG)|*.JPG";
|
||||
sfd.Filter += "|PCX format (*.PCX)|*.PCX";
|
||||
sfd.Filter += "|PNG format (*.PNG)|*.PNG";
|
||||
sfd.Filter += "|PNM format (*.PNM)|*.PNM";
|
||||
sfd.Filter += "|RAW format (*.RAW)|*.RAW";
|
||||
sfd.Filter += "|SGI format (*.SGI)|*.SGI";
|
||||
sfd.Filter += "|TGA format (*.TGA)|*.TGA";
|
||||
sfd.Filter += "|TIF format (*.TIF)|*.TIF";
|
||||
sfd.Filter += "|PAL format (*.PAL)|*.PAL";
|
||||
|
||||
if (sfd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
DevIL.DevIL.SaveBitmap(sfd.FileName, m_bmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 1.3
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">1.3</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1">this is my long string</data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
[base64 mime encoded serialized .NET Framework object]
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
[base64 mime encoded string representing a byte array form of the .NET Framework object]
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>1.3</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="mainMenu.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</data>
|
||||
<data name="$this.Name">
|
||||
<value>frmImageView</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -0,0 +1,31 @@
|
||||
Imports System.Reflection
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
' General Information about an assembly is controlled through the following
|
||||
' set of attributes. Change these attribute values to modify the information
|
||||
' associated with an assembly.
|
||||
|
||||
' Review the values of the assembly attributes
|
||||
|
||||
<Assembly: AssemblyTitle("")>
|
||||
<Assembly: AssemblyDescription("")>
|
||||
<Assembly: AssemblyCompany("")>
|
||||
<Assembly: AssemblyProduct("")>
|
||||
<Assembly: AssemblyCopyright("")>
|
||||
<Assembly: AssemblyTrademark("")>
|
||||
<Assembly: CLSCompliant(True)>
|
||||
|
||||
'The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
<Assembly: Guid("1B50578B-A3AB-4AA2-858B-267B61D35579")>
|
||||
|
||||
' Version information for an assembly consists of the following four values:
|
||||
'
|
||||
' Major Version
|
||||
' Minor Version
|
||||
' Build Number
|
||||
' Revision
|
||||
'
|
||||
' You can specify all the values or you can default the Build and Revision Numbers
|
||||
' by using the '*' as shown below:
|
||||
|
||||
<Assembly: AssemblyVersion("1.0.*")>
|
||||
@@ -0,0 +1,117 @@
|
||||
<VisualStudioProject>
|
||||
<VisualBasic
|
||||
ProjectType = "Local"
|
||||
ProductVersion = "7.0.9466"
|
||||
SchemaVersion = "1.0"
|
||||
ProjectGuid = "{F073580C-F355-4F4A-98B7-83D571B96B9E}"
|
||||
>
|
||||
<Build>
|
||||
<Settings
|
||||
ApplicationIcon = ""
|
||||
AssemblyKeyContainerName = ""
|
||||
AssemblyName = "ImageViewVb"
|
||||
AssemblyOriginatorKeyFile = ""
|
||||
AssemblyOriginatorKeyMode = "None"
|
||||
DefaultClientScript = "JScript"
|
||||
DefaultHTMLPageLayout = "Grid"
|
||||
DefaultTargetSchema = "IE50"
|
||||
DelaySign = "false"
|
||||
OutputType = "WinExe"
|
||||
OptionCompare = "Binary"
|
||||
OptionExplicit = "On"
|
||||
OptionStrict = "Off"
|
||||
RootNamespace = "ImageViewVb"
|
||||
StartupObject = "ImageViewVb.frmImageView"
|
||||
>
|
||||
<Config
|
||||
Name = "Debug"
|
||||
BaseAddress = "285212672"
|
||||
ConfigurationOverrideFile = ""
|
||||
DefineConstants = ""
|
||||
DefineDebug = "true"
|
||||
DefineTrace = "true"
|
||||
DebugSymbols = "true"
|
||||
IncrementalBuild = "true"
|
||||
Optimize = "false"
|
||||
OutputPath = "bin\"
|
||||
RegisterForComInterop = "false"
|
||||
RemoveIntegerChecks = "false"
|
||||
TreatWarningsAsErrors = "false"
|
||||
WarningLevel = "1"
|
||||
/>
|
||||
<Config
|
||||
Name = "Release"
|
||||
BaseAddress = "285212672"
|
||||
ConfigurationOverrideFile = ""
|
||||
DefineConstants = ""
|
||||
DefineDebug = "false"
|
||||
DefineTrace = "true"
|
||||
DebugSymbols = "false"
|
||||
IncrementalBuild = "false"
|
||||
Optimize = "true"
|
||||
OutputPath = "bin\"
|
||||
RegisterForComInterop = "false"
|
||||
RemoveIntegerChecks = "false"
|
||||
TreatWarningsAsErrors = "false"
|
||||
WarningLevel = "1"
|
||||
/>
|
||||
</Settings>
|
||||
<References>
|
||||
<Reference
|
||||
Name = "System"
|
||||
AssemblyName = "System"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.Data"
|
||||
AssemblyName = "System.Data"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.Drawing"
|
||||
AssemblyName = "System.Drawing"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.Windows.Forms"
|
||||
AssemblyName = "System.Windows.Forms"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.XML"
|
||||
AssemblyName = "System.Xml"
|
||||
/>
|
||||
<Reference
|
||||
Name = "DevIL.NET"
|
||||
Project = "{30D94686-D452-4A73-B59D-178288807EE5}"
|
||||
Package = "{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}"
|
||||
/>
|
||||
</References>
|
||||
<Imports>
|
||||
<Import Namespace = "Microsoft.VisualBasic" />
|
||||
<Import Namespace = "System" />
|
||||
<Import Namespace = "System.Collections" />
|
||||
<Import Namespace = "System.Data" />
|
||||
<Import Namespace = "System.Drawing" />
|
||||
<Import Namespace = "System.Diagnostics" />
|
||||
<Import Namespace = "System.Windows.Forms" />
|
||||
</Imports>
|
||||
</Build>
|
||||
<Files>
|
||||
<Include>
|
||||
<File
|
||||
RelPath = "AssemblyInfo.vb"
|
||||
SubType = "Code"
|
||||
BuildAction = "Compile"
|
||||
/>
|
||||
<File
|
||||
RelPath = "frmImageView.vb"
|
||||
SubType = "Form"
|
||||
BuildAction = "Compile"
|
||||
/>
|
||||
<File
|
||||
RelPath = "frmImageView.resx"
|
||||
DependentUpon = "frmImageView.vb"
|
||||
BuildAction = "EmbeddedResource"
|
||||
/>
|
||||
</Include>
|
||||
</Files>
|
||||
</VisualBasic>
|
||||
</VisualStudioProject>
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
<VisualStudioProject>
|
||||
<VisualBasic>
|
||||
<Build>
|
||||
<Settings ReferencePath = "" >
|
||||
<Config
|
||||
Name = "Debug"
|
||||
EnableASPDebugging = "false"
|
||||
EnableASPXDebugging = "false"
|
||||
EnableUnmanagedDebugging = "false"
|
||||
EnableSQLServerDebugging = "false"
|
||||
RemoteDebugEnabled = "false"
|
||||
RemoteDebugMachine = ""
|
||||
StartAction = "Project"
|
||||
StartArguments = ""
|
||||
StartPage = ""
|
||||
StartProgram = ""
|
||||
StartURL = ""
|
||||
StartWorkingDirectory = ""
|
||||
StartWithIE = "true"
|
||||
/>
|
||||
<Config
|
||||
Name = "Release"
|
||||
EnableASPDebugging = "false"
|
||||
EnableASPXDebugging = "false"
|
||||
EnableUnmanagedDebugging = "false"
|
||||
EnableSQLServerDebugging = "false"
|
||||
RemoteDebugEnabled = "false"
|
||||
RemoteDebugMachine = ""
|
||||
StartAction = "Project"
|
||||
StartArguments = ""
|
||||
StartPage = ""
|
||||
StartProgram = ""
|
||||
StartURL = ""
|
||||
StartWorkingDirectory = ""
|
||||
StartWithIE = "false"
|
||||
/>
|
||||
</Settings>
|
||||
</Build>
|
||||
<OtherProjectSettings
|
||||
CopyProjectDestinationFolder = ""
|
||||
CopyProjectUncPath = ""
|
||||
CopyProjectOption = "0"
|
||||
ProjectView = "ProjectFiles"
|
||||
ProjectTrust = "0"
|
||||
/>
|
||||
</VisualBasic>
|
||||
</VisualStudioProject>
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 1.3
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">1.3</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1">this is my long string</data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
[base64 mime encoded serialized .NET Framework object]
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
[base64 mime encoded string representing a byte array form of the .NET Framework object]
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>1.3</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="mainMenu.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>159, 0</value>
|
||||
</data>
|
||||
<data name="mainMenu.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="mnuFile.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="mnuFileOpen.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="mnuFileSaveAs.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="mnuFileSep1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="mnuFileExit.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="mnuHelp.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="mnuHelpAbout.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="pictureBox.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="$this.Name">
|
||||
<value>frmImageView</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -0,0 +1,184 @@
|
||||
Public Class frmImageView
|
||||
Inherits System.Windows.Forms.Form
|
||||
|
||||
#Region " Windows Form Designer generated code "
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New()
|
||||
|
||||
'This call is required by the Windows Form Designer.
|
||||
InitializeComponent()
|
||||
|
||||
'Add any initialization after the InitializeComponent() call
|
||||
|
||||
End Sub
|
||||
|
||||
'Form overrides dispose to clean up the component list.
|
||||
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
If disposing Then
|
||||
If Not (components Is Nothing) Then
|
||||
components.Dispose()
|
||||
End If
|
||||
End If
|
||||
MyBase.Dispose(disposing)
|
||||
End Sub
|
||||
|
||||
'Required by the Windows Form Designer
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'NOTE: The following procedure is required by the Windows Form Designer
|
||||
'It can be modified using the Windows Form Designer.
|
||||
'Do not modify it using the code editor.
|
||||
Friend WithEvents mainMenu As System.Windows.Forms.MainMenu
|
||||
Friend WithEvents mnuFile As System.Windows.Forms.MenuItem
|
||||
Friend WithEvents mnuFileOpen As System.Windows.Forms.MenuItem
|
||||
Friend WithEvents mnuFileSaveAs As System.Windows.Forms.MenuItem
|
||||
Friend WithEvents mnuFileSep1 As System.Windows.Forms.MenuItem
|
||||
Friend WithEvents mnuFileExit As System.Windows.Forms.MenuItem
|
||||
Friend WithEvents mnuHelp As System.Windows.Forms.MenuItem
|
||||
Friend WithEvents mnuHelpAbout As System.Windows.Forms.MenuItem
|
||||
Friend WithEvents pictureBox As System.Windows.Forms.PictureBox
|
||||
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
|
||||
Me.mainMenu = New System.Windows.Forms.MainMenu()
|
||||
Me.mnuFile = New System.Windows.Forms.MenuItem()
|
||||
Me.mnuFileOpen = New System.Windows.Forms.MenuItem()
|
||||
Me.mnuFileSaveAs = New System.Windows.Forms.MenuItem()
|
||||
Me.mnuFileSep1 = New System.Windows.Forms.MenuItem()
|
||||
Me.mnuFileExit = New System.Windows.Forms.MenuItem()
|
||||
Me.mnuHelp = New System.Windows.Forms.MenuItem()
|
||||
Me.mnuHelpAbout = New System.Windows.Forms.MenuItem()
|
||||
Me.pictureBox = New System.Windows.Forms.PictureBox()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'mainMenu
|
||||
'
|
||||
Me.mainMenu.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mnuFile, Me.mnuHelp})
|
||||
'
|
||||
'mnuFile
|
||||
'
|
||||
Me.mnuFile.Index = 0
|
||||
Me.mnuFile.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mnuFileOpen, Me.mnuFileSaveAs, Me.mnuFileSep1, Me.mnuFileExit})
|
||||
Me.mnuFile.Text = "&File"
|
||||
'
|
||||
'mnuFileOpen
|
||||
'
|
||||
Me.mnuFileOpen.Index = 0
|
||||
Me.mnuFileOpen.Text = "&Open..."
|
||||
'
|
||||
'mnuFileSaveAs
|
||||
'
|
||||
Me.mnuFileSaveAs.Index = 1
|
||||
Me.mnuFileSaveAs.Text = "Save &as..."
|
||||
'
|
||||
'mnuFileSep1
|
||||
'
|
||||
Me.mnuFileSep1.Index = 2
|
||||
Me.mnuFileSep1.Text = "-"
|
||||
'
|
||||
'mnuFileExit
|
||||
'
|
||||
Me.mnuFileExit.Index = 3
|
||||
Me.mnuFileExit.Text = "E&xit"
|
||||
'
|
||||
'mnuHelp
|
||||
'
|
||||
Me.mnuHelp.Index = 1
|
||||
Me.mnuHelp.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mnuHelpAbout})
|
||||
Me.mnuHelp.Text = "&?"
|
||||
'
|
||||
'mnuHelpAbout
|
||||
'
|
||||
Me.mnuHelpAbout.Index = 0
|
||||
Me.mnuHelpAbout.Text = "&About..."
|
||||
'
|
||||
'pictureBox
|
||||
'
|
||||
Me.pictureBox.Name = "pictureBox"
|
||||
Me.pictureBox.Size = New System.Drawing.Size(720, 414)
|
||||
Me.pictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize
|
||||
Me.pictureBox.TabIndex = 1
|
||||
Me.pictureBox.TabStop = False
|
||||
'
|
||||
'frmImageView
|
||||
'
|
||||
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
|
||||
Me.ClientSize = New System.Drawing.Size(720, 434)
|
||||
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.pictureBox})
|
||||
Me.Menu = Me.mainMenu
|
||||
Me.Name = "frmImageView"
|
||||
Me.Text = "ImageView VB.NET"
|
||||
Me.ResumeLayout(False)
|
||||
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
|
||||
Private m_bmp As System.Drawing.Bitmap
|
||||
|
||||
|
||||
Private Sub mnuFileOpen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFileOpen.Click
|
||||
Dim ofd As New System.Windows.Forms.OpenFileDialog()
|
||||
ofd.Filter = "All Image Files(*.BMP;*.CUT;*.DCX;*.DDS;*.ICO;*.GIF;*.JPG;*.LBM;*.LIF;*.MDL;*.PCD;*.PCX;*.PIC;*.PNG;*.PNM;*.PSD;*.PSP;*.RAW;*.SGI;*.TGA;*.TIF;*.WAL;*.ACT;*.PAL;)|*.BMP;*.CUT;*.DCX;*.DDS;*.ICO;*.GIF;*.JPG;*.LBM;*.LIF;*.MDL;*.PCD;*.PCX;*.PIC;*.PNG;*.PNM;*.PSD;*.PSP;*.RAW;*.SGI;*.TGA;*.TIF;*.WAL;*.ACT;*.PAL|All files (*.*)|*.*"
|
||||
ofd.Filter += "|BMP files (*.BMP)|*.BMP"
|
||||
ofd.Filter += "|CUT files (*.CUT)|*.CUT"
|
||||
ofd.Filter += "|DCX files (*.DCX)|*.DCX"
|
||||
ofd.Filter += "|DDS files (*.DDS)|*.DDS"
|
||||
ofd.Filter += "|ICO files (*.ICO)|*.ICO"
|
||||
ofd.Filter += "|GIF files (*.GIF)|*.GIF"
|
||||
ofd.Filter += "|JPG files (*.JPG)|*.JPG"
|
||||
ofd.Filter += "|LBM files (*.LBM)|*.LBM"
|
||||
ofd.Filter += "|LIF files (*.LIF)|*.LIF"
|
||||
ofd.Filter += "|MDL files (*.MDL)|*.MDL"
|
||||
ofd.Filter += "|PCD files (*.PCD)|*.PCD"
|
||||
ofd.Filter += "|PCX files (*.PCX)|*.PCX"
|
||||
ofd.Filter += "|PIC files (*.PIC)|*.PIC"
|
||||
ofd.Filter += "|PNG files (*.PNG)|*.PNG"
|
||||
ofd.Filter += "|PNM files (*.PNM)|*.PNM"
|
||||
ofd.Filter += "|PSD files (*.PSD)|*.PSD"
|
||||
ofd.Filter += "|PSP files (*.PSP)|*.PSP"
|
||||
ofd.Filter += "|RAW files (*.RAW)|*.RAW"
|
||||
ofd.Filter += "|SGI files (*.SGI)|*.SGI"
|
||||
ofd.Filter += "|TGA files (*.TGA)|*.TGA"
|
||||
ofd.Filter += "|TIF files (*.TIF)|*.TIF"
|
||||
ofd.Filter += "|WAL files (*.WAL)|*.WAL"
|
||||
ofd.Filter += "|ACT files (*.ACT)|*.ACT"
|
||||
ofd.Filter += "|PAL files (*.PAL)|*.PAL"
|
||||
ofd.Filter += "|All files (*.*)|*.*"
|
||||
|
||||
If (ofd.ShowDialog() = DialogResult.OK) Then
|
||||
m_bmp = DevIL.DevIL.LoadBitmap(ofd.FileName)
|
||||
If Not (m_bmp Is Nothing) Then
|
||||
pictureBox.Image = m_bmp
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub mnuFileSaveAs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFileSaveAs.Click
|
||||
If Not (m_bmp Is Nothing) Then
|
||||
Dim sfd As New System.Windows.Forms.SaveFileDialog()
|
||||
sfd.Filter = "BMP format (*.BMP)|*.BMP"
|
||||
sfd.Filter += "|DDS format (*.DDS)|*.DDS"
|
||||
sfd.Filter += "|JPG format (*.JPG)|*.JPG"
|
||||
sfd.Filter += "|PCX format (*.PCX)|*.PCX"
|
||||
sfd.Filter += "|PNG format (*.PNG)|*.PNG"
|
||||
sfd.Filter += "|PNM format (*.PNM)|*.PNM"
|
||||
sfd.Filter += "|RAW format (*.RAW)|*.RAW"
|
||||
sfd.Filter += "|SGI format (*.SGI)|*.SGI"
|
||||
sfd.Filter += "|TGA format (*.TGA)|*.TGA"
|
||||
sfd.Filter += "|TIF format (*.TIF)|*.TIF"
|
||||
sfd.Filter += "|PAL format (*.PAL)|*.PAL"
|
||||
|
||||
If (sfd.ShowDialog() = DialogResult.OK) Then
|
||||
DevIL.DevIL.SaveBitmap(sfd.FileName, m_bmp)
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub mnuFileExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFileExit.Click
|
||||
Me.Close()
|
||||
End Sub
|
||||
|
||||
Private Sub mnuHelpAbout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuHelpAbout.Click
|
||||
MessageBox.Show("Program by Marco Mastropaolo\n\nThis is a VB.NET example for the DevIL.NET library.\n\nhttp://www.mastropaolo.com", "About")
|
||||
End Sub
|
||||
End Class
|
||||
@@ -0,0 +1,79 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DevIL.NET", "DevIL.NET.vcproj", "{30D94686-D452-4A73-B59D-178288807EE5}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ThumbView", "..\ThumbView\ThumbView.csproj", "{1541F8B7-DBE4-490B-9E1A-8D0122339F09}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageViewCs", "..\ImageViewCs\ImageViewCs.csproj", "{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}"
|
||||
EndProject
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ImageViewVb", "..\ImageViewVb\ImageViewVb.vbproj", "{F073580C-F355-4F4A-98B7-83D571B96B9E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|Mixed Platforms = Debug|Mixed Platforms
|
||||
Debug|Win32 = Debug|Win32
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|Mixed Platforms = Release|Mixed Platforms
|
||||
Release|Win32 = Release|Win32
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug|Any CPU.ActiveCfg = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug|Mixed Platforms.Build.0 = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release|Any CPU.ActiveCfg = Release|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release|Mixed Platforms.ActiveCfg = Release|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release|Mixed Platforms.Build.0 = Release|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release|Win32.Build.0 = Release|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release|x86.ActiveCfg = Release|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release|x86.Build.0 = Release|Win32
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Debug|Win32.ActiveCfg = Debug|Any CPU
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Release|Win32.ActiveCfg = Release|Any CPU
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug|Win32.ActiveCfg = Debug|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug|x86.Build.0 = Debug|x86
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release|Win32.ActiveCfg = Release|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release|x86.ActiveCfg = Release|x86
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release|x86.Build.0 = Release|x86
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug|Win32.ActiveCfg = Debug|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug|x86.Build.0 = Debug|x86
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release|Win32.ActiveCfg = Release|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release|x86.ActiveCfg = Release|x86
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(DPCodeReviewSolutionGUID) = preSolution
|
||||
DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,219 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="DevIL.NET"
|
||||
ProjectGUID="{30D94686-D452-4A73-B59D-178288807EE5}"
|
||||
Keyword="ManagedCProj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
|
||||
CharacterSet="2"
|
||||
ManagedExtensions="4"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="g:\prg\devil\include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG"
|
||||
GeneratePreprocessedFile="0"
|
||||
MinimalRebuild="false"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="devil.lib"
|
||||
OutputFile="$(OutDir)/DevIL.NET.dll"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="g:\prg\devil\lib"
|
||||
GenerateDebugInformation="true"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
|
||||
CharacterSet="2"
|
||||
ManagedExtensions="4"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="c:\prg\devil\include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG"
|
||||
MinimalRebuild="false"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="devil.lib"
|
||||
OutputFile="$(OutDir)/DevIL.NET.dll"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories="c:\prg\devil\lib"
|
||||
GenerateDebugInformation="true"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm"
|
||||
>
|
||||
<File
|
||||
RelativePath="DevIL.NET.cpp"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
GeneratePreprocessedFile="0"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc"
|
||||
>
|
||||
<File
|
||||
RelativePath="DotNetIlu.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="Stdafx.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;r"
|
||||
>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath="ReadMe.txt"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
Reference in New Issue
Block a user