| 1 |
bearsoft |
1.1 |
#include "Picture.h" |
| 2 |
|
|
#include "../System/System.h" |
| 3 |
|
|
#include "../System/SystemDefine.h" |
| 4 |
|
|
#include "../Array/ObjectArray.h"
|
| 5 |
|
|
|
| 6 |
|
|
Picture::Picture() |
| 7 |
|
|
{
|
| 8 |
|
|
filePath = new String();
|
| 9 |
|
|
info = new String();
|
| 10 |
|
|
data = new String();
|
| 11 |
|
|
} |
| 12 |
|
|
|
| 13 |
|
|
Picture::~Picture() |
| 14 |
|
|
{
|
| 15 |
|
|
if (filePath != null) |
| 16 |
|
|
{
|
| 17 |
|
|
delete filePath;
|
| 18 |
|
|
}
|
| 19 |
|
|
|
| 20 |
|
|
if (info != null)
|
| 21 |
|
|
{
|
| 22 |
|
|
delete info;
|
| 23 |
|
|
}
|
| 24 |
|
|
|
| 25 |
|
|
if (data != null)
|
| 26 |
|
|
{
|
| 27 |
|
|
delete data;
|
| 28 |
|
|
}
|
| 29 |
|
|
}
|
| 30 |
|
|
|
| 31 |
|
|
//<img src="pictures/1.png"
|
| 32 |
|
|
//border=0 alt="Lazy Games">
|
| 33 |
|
|
|
| 34 |
|
|
void Picture::create()
|
| 35 |
|
|
{
|
| 36 |
|
|
String startData="<img src=";
|
| 37 |
|
|
data->setString(startData + filePath + " alt=" + info + ">");
|
| 38 |
|
|
// System::println(data);
|
| 39 |
|
|
} |
| 40 |
|
|
|