• 15 апреля стартует «Курс «SQL-injection Master» ©» от команды The Codeby

    За 3 месяца вы пройдете путь от начальных навыков работы с SQL-запросами к базам данных до продвинутых техник. Научитесь находить уязвимости связанные с базами данных, и внедрять произвольный SQL-код в уязвимые приложения.

    На последнюю неделю приходится экзамен, где нужно будет показать свои навыки, взломав ряд уязвимых учебных сайтов, и добыть флаги. Успешно сдавшие экзамен получат сертификат.

    Запись на курс до 25 апреля. Получить промодоступ ...

Чтение/запись битов в Tiff-файле

  • Автор темы apomin
  • Дата начала
A

apomin

Нужно читать/записывать tiff-файлы в программе на Visual C++ 6.0
Например, проверять и изменять состояние точек с заданными координатами.
Как это можно сделать?
 
U

uis99

Класс Image, из WinAPI:
/////////////////////////////////////////

Image::Image Constructor

--------------------------------------------------------------------------------

Creates an Image object based on a file.

Syntax

Image( const WCHAR *filename,
BOOL useEmbeddedColorManagement
);


Parameters

filename
[in] Pointer to a wide-character string that specifies the name of the file.
useEmbeddedColorManagement
[in] Optional. Boolean value that specifies whether the new Image object applies color correction according to color management information that is embedded in the image file. Embedded information can include International Color Consortium (ICC) profiles, gamma values, and chromaticity information.
FALSE
Default. Specifies that color correction is enabled
TRUE
Specifies that color correction is not enabled
Return Value

No return value.
Remarks

You can construct Image objects based on files of a variety of types including BMP, Graphics Interchange Format (GIF), JPEG, PNG, TIFF, and EMF.

Constructor Information

Stock Implementation gdiplus.dll
Header Declared in Gdiplusheaders.h, include gdiplus.h
Import library gdiplus.lib
Minimum availability GDI+ 1.0
Minimum operating systems Windows 98/Me, Windows XP, Windows 2000, Windows NT 4.0 SP6

See Also

Bitmap, Image::Clone, Image::FromFile, Image::FromStream, Image Constructors, Loading and Displaying Bitmaps, Drawing, Positioning, and Cloning Images

--------------------------------------------------------------------------------

© 2005 Microsoft Corporation. All rights reserved.
 
Мы в соцсетях:

Обучение наступательной кибербезопасности в игровой форме. Начать игру!